Telem-GW6Lin filesystem: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
m (Lehekülg "Telem-GW6Lin-filesystem" teisaldatud pealkirja "Telem-GW6Lin filesystem" alla)
(No difference)

Revision as of 15:09, 17 August 2009

Preparations

Connecting to gateway through serial console

  1. Connect Gateway to your computer
  2. Open up a terminal: gnome-terminal / ssherminator / xterm / any other
  3. Start minicom
    • Settings: 38400 8N1 flow control: none
  4. Connect external power to gateway
  5. Press any key when asked
    • You will only have a second

You will see(With DIMM module 27M-DMM-144):

NAND X-Loader 1.22


U-Boot 1.1.2-vpac4 (Feb 26 2009 - 18:20:24)

U-Boot code: 5C010000 -> 5C01D9C8  BSS: -> 5C0214D8
RAM Configuration:
Bank #0: a0000000 64 MB
Bank #1: 80000000  0 kB
OneNAND: Scanning device for bad blocks
Flash: 64 MB
dm9000 i/o: 0x8000300 (32bit), id: 0x90000a46 
MAC: 00:0d:15:00:72:31
Hit any key to stop autoboot:  0 
u-boot>

Voila, you're in console

Setting up U-Boot

To see current environment variables type

  • printenv

It returns something like this:

u-boot> printenv
bootdelay=3
baudrate=38400
bootcmd=one read a1000000 40000 160000;wtags;go
ethaddr=00:0d:15:00:72:31
filesize=11f11c
fileaddr=A1000000
netmask=255.255.255.0
serverip=10.0.0.16
ipaddr=192.168.1.200
bootargs=console=ttyS0,38400 tftproot=10.0.0.16:rootfs.tar.gz
gatewayip=10.0.0.42

Environment size: 279/2044 bytes
u-boot> 

Now:

  • set gatewayip 10.0.0.42
  • set ipaddr 10.0.0.23
    • this needs to be unused, ping it if unsure
      • ping 10.0.0.23
  • save

Flashing filesystem

  • Paste to u-boot
u-boot> erase 1:12-;set bootargs console=ttyS0,38400 tftproot=10.0.0.16:rootfs.tar.gz;tftp zImage-144u.bin;wtags;go
  • Restart device when asked

When it doesn't work

Warning: gatewayip needed but not set

While in U-Boot type:

  • set gatewayip 10.0.0.42
  • save