LDD 1 How to build Linux Device Driver dev environment - limingth/LASO GitHub Wiki

Resource files can be found here:

https://github.com/limingth/ARM-Lessons/tree/master/CortexA8-s5pv210-20120901

First install arm-linux-gcc

tar zxvf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz

See driver files

https://github.com/limingth/ARM-Lessons/tree/master/CortexA8-s5pv210-20120901/tiny210/drivers

See app files

https://github.com/limingth/ARM-Lessons/tree/master/CortexA8-s5pv210-20120901/tiny210/examples

reset tiny210 board and set network

set board IP as 192.168.0.201

vi /etc/eth0-setting
IP = 192.168.0.201
Gateway = 192.168.0.1
DNS = 192.168.0.1

set ubuntu Linux IP as 192.168.0.200

sudo ifconfig eth0 192.168.0.200

test ftp (from ubuntu to board)

$ ftp 192.168.0.201
Name: root
Password: root
ftp> binary
ftp> put led
ftp> quit

test ftp scripts (auto put file)

vi ftp.sh

#!/bin/sh
DIR=$1
FILE=$2
ftp -i -in <<!
open 192.168.0.201 21
user username password
cd /tmp
lcd $DIR         
bin 
put $FILE
bye 

test ftp.sh

chmod 777 ftp.sh
./ftp.sh leds led 
    (leds is dir name, led is file name)
./ftp.sh . led
    (if ftp.sh is in same diretory as led file)