LinuxBoard3.2

From VentureResearchWiki
Jump to navigation Jump to search

Hardware[edit | edit source]

Setup CAN[edit | edit source]

ip link set can0 type can bitrate 500000
ip link set can0 up

Software[edit | edit source]

also see VRReader

U-boot[edit | edit source]

  • substitute the u-boot-vrreader... file with the latest u-boot file
  • substitute 1c0000 with the size of u-boot
bootp
mw.b 0x80000000 0xff 0x1c0000
tftp 0x80000000 u-boot-vrreader-am35.bin
nand erase 0x80000 1c0000
nand write 0x80000000 0x80000 1c0000
reset

Kernel / FS Loading[edit | edit source]

  • make sure kernel size is < 0x300000 or change script below!
  • make sure ETHADDR is set correctly!
setenv ethaddr 00:50:c2:7c:57:00
setenv get_kernel nand read.i 0x80000000 0x280000 0x300000
setenv bootargs_fs mem=256M console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 eth=$ethaddr
setenv boot_fs run get_kernel\; setenv bootargs \$bootargs_fs\; bootm 0x80000000
setenv bootcmd run boot_fs
setenv bootdelay 1
save

<reset>

bootp
mw.b 0x80000000 0xFF 0x500000
tftp 0x80000000 uImage-vrreader-am35.bin
nand erase 0x280000 0x500000
nand write 0x80000000 0x280000 0x300000
 
; filesystem

; DO NOT USE - this doesn't work... JFFS2 starts getting corrupted...
;nand erase 0x780000 0xF880000
;mw.i 0x82000000 0xFFFFFFFF 0xF880000
;tftp 0x82000000 venture-image-rehrig-vrreader-am35.jffs2
;nandecc hw
;nand write 0x82000000 0x780000 0x2000000
;

... boot into NFS again

bootp
tftp 0x80000000 uImage-vrreader-am35.bin
setenv bootargs console=ttyO2,115200n8 root=/dev/nfs rw ip=dhcp nfsroot=192.168.19.128:/srv/nfs/image ethaddr=00:50:c2:7c:5f:fc consoleblank=0 omapfb.mode=lcd:1024x768@60
bootm 0x80000000

at Linux command prompt...

flash_erase -j /dev/mtd4 0 0
mknod /dev/mtdblock4 b 31 4
scp venture@embedded-prod:/home/yocto/poky/build/tmp/deploy/images/venture-image-rehrig-vrreader-am35.tar.bz2 /tmp/
mkdir /tmp/flash
mount -t jffs2 /dev/mtdblock4 /tmp/flash/
cd /tmp/flash
tar xjvf /tmp/venture-image-rehrig-vrreader-am35.tar.bz2
echo vr-00XXXX > etc/hostname
echo 127.0.0.1 cat etc/hostname >> etc/hosts
sync
reboot

... first run

echo root:rfid4ever_vr | chpasswd -m
echo vr-7c5700 > /etc/hostname                         (if not done above)
hostname cat /etc/hostname                           (if not done above)
echo 127.0.0.1 cat /etc/hostname >> /etc/hosts       (if not done above)

Android[edit | edit source]

mmc init
fatload mmc 0 0x82000000 /boot.scr
source 0x82000000
bootm 0x82000000