Foonas-em:TFTPBoot-n1200

From foonas

Jump to: navigation, search

Server Configuration and Image

Configure a tftp server on your platform of choice using 192.168.1.99 as its IP address. You should also have serial port access to the device so that you can issue commands to U-Boot. The root directory for your tftp server must contain the files you need to boot your n1200 with, in this case zImage and foonas-em-ramdisk.

Using a Serial Port Connection

Using the serial port app of your choice (e.g. minicom), establish a connection to your n1200 and power it up. You will see the usual:

U-Boot 1.1.3 (FSL Development) (Apr 23 2007 - 12:32:10) MPC83XX

Clock configuration:
  Coherent System Bus:  266 MHz
  Core:                 266 MHz
  Local Bus Controller: 266 MHz
  Local Bus:             33 MHz
  DDR:                  266 MHz
  I2C:                  133 MHz
  TSEC1:                133 MHz
  TSEC2:                133 MHz
  USB MPH:               88 MHz
  USB DR:                88 MHz
CPU: MPC83xx, Rev: 11 at 266.666 MHz
Board: Thecus N1200
I2C:   ready
DRAM:  SDRAM on Local Bus is NOT available!
   DDR RAM: 128 MB
FLASH:  8 MB
PCI1 32bit on PMC1 & PMC2 & PMC3
In:    serial
Out:   serial
Err:   serial
Net:   Freescale TSEC0: PHY is Realtek RTL8211B (1cc912)
Freescale TSEC1: PHY id 1410c87 is not supported!
Freescale TSEC1: No PHY found
Freescale TSEC0, Freescale TSEC1
Thecus Version: 4, PIC version: 4
Hit any key to stop autoboot:  0

When you see the last line above stop the boot process by pressing any key twice or so. You should then see the UBoot prompt:

=> 

Ensure you have the right network settings:

=> setenv serverip 192.168.1.99 (IP of tftp server)
=> setenv gatewayip 192.168.1.1 (default gateway)
=> setenv ipaddr 192.168.1.122 (IP of n1200)
=> saveenv (optional - saves config beyond reboot/shutdown)

Set a macro for easily tftp booting in the future:

=> setenv gotftp 'tftp $loadaddr zImage; tftp $ramdiskaddr foonas-em-ramdisk; setenv bootargs console=ttyS0,115200; bootm $loadaddr $ramdiskaddr'
=> saveenv

Now, boot foonas-em:

=> run gotftp

Speed: 1000, full duplex
Using Freescale TSEC0 device
TFTP from server 192.168.1.99; our IP address is 192.168.1.122
Filename 'zImage'.
Load address: 0x200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
done
Bytes transferred = 1351843 (14a0a3 hex)
Speed: 1000, full duplex
Using Freescale TSEC0 device
TFTP from server 192.168.1.99; our IP address is 192.168.1.122
Filename 'foonas-em-ramdisk'.
Load address: 0xf00000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################################
done
Bytes transferred = 2623300 (280744 hex)
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.26.5-foonas-em
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1351779 Bytes =  1.3 MB
   Load Address: 00400000
   Entry Point:  004005a4
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 00f00000 ...
   Image Name:   foonas ramdisk image
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    2623236 Bytes =  2.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 07d2f000, end 07faf704 ... OK
Using MPC834x MDS machine description
Linux version 2.6.26.5-foonas-em (ole@mediapc) (gcc version 4.2.4) #1 Sun Sep 14 23:02:55 BST 2008
Found initrd at 0xc7d2f000:0xc7faf704
Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number: 0->0
PCI host bridge /pci@e0008500 (primary) ranges:
 MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000 Prefetch
 MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000 
  IO 0x00000000e2000000..0x00000000e2ffffff -> 0x0000000000000000
Zone PFN ranges:
  DMA             0 ->    32768
  Normal      32768 ->    32768
  HighMem     32768 ->    32768
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,115200
IPIC (128 IRQ sources) at fe7f5700
PID hash table entries: 512 (order: 9, 2048 bytes)
clocksource: timebase mult[3c00001] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 124284k/131072k available (2636k kernel code, 6628k reserved, 116k data, 107k bss, 144k init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 192 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 5 of device 0000:00:10.0, will remap
PCI: Failed to allocate mem resource #2:80000000@0 for 0000:00:00.0
PCI: Error while updating region 0000:00:00.0/4 (90100204 != 00000004)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs... it is
Freeing initrd memory: 2561k freed
JFFS2 version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
msgmni has been set to 248
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 19) is a 16550A
console [ttyS0] enabled
se rial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 21) is a 16550A
brd: module loaded
loop: module loaded
Gianfar MII Bus: probed
eth0: Gianfar Ethernet Controller Version 1.2, 00:14:fd:10:92:14
eth0: Running with NAPI enabled
eth0: 256/256 RX/TX BD ring size
eth1: Gianfar Ethernet Controller Version 1.2, 00:14:fd:10:92:15
eth1: Running with NAPI enabled
eth1: 256/256 RX/TX BD ring size
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
sata_sil 0000:00:10.0: Applying R_ERR on DMA activate FIS errata fix
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0x90100000 tf 0x90100080 irq 20
ata2: SATA max UDMA/100 mmio m512@0x90100000 tf 0x901000c0 irq 20
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: ATA-6: ST9402115AS, 3.01, max UDMA/100
ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 0/1)
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 310)
scsi 0:0:0:0: Direct-Access     ATA      ST9402115AS      3.01 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-rs5c372 0-0032: rs5c372a found, 24hr, driver version 0.5
rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
i2c-adapter i2c-0: found f75375 version: 15
WDT driver for MPC83xx initialized. mode:reset timeout=65535 (16 seconds)
md: raid1 personality registered for level 1
device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
TCP cubic registered
NET: Registered protocol family 17
rtc-rs5c372 0-0032: setting system clock to 2038-09-15 06:10:47 UTC (2168143847)
Freeing unused kernel memory: 144k init
init started: BusyBox v1.11.2 (2008-09-14 00:42:53 BST)
starting pid 872, tty : '/bin/mount -t proc none /proc'
starting pid 873, tty : '/bin/mount -t sysfs none /sys'
starting pid 874, tty : '/bin/mount -t tmpfs -o size=64k,mode=0755 none /dev'
starting pid 875, tty : '/bin/mkdir /dev/pts'
starting pid 876, tty : '/bin/mount -t devpts devpts /dev/pts'
starting pid 877, tty : '/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug'
starting pid 878, tty : '/sbin/mdev -s'
starting pid 881, tty : '/bin/mount -a'
mount: mounting shm on /dev/shm failed: No such file or directory
starting pid 882, tty : '/etc/init.d/rcS'
udhcpc (v1.11.2) started
Sending discover...
Sending select for 192.168.1.108...
Lease of 192.168.1.108 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 194.168.4.100
adding dns 194.168.8.100
JFS: nTxBlock = 993, nTxLock = 7947
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 39, io base 0xe0022000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
fsl-ehci fsl-ehci.1: irq 38, io base 0xe0023000
fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
starting pid 992, tty : '/sbin/getty -L ttyS0
    ______ _____ _____ __   __  _____  ______
   |   ___|     |     |   \|  |/  _  \|   ___|
  _|   ___|  -  |  -  |       |   _   |\   \
 | |__|   |_____|_____|__|\___|__| |__|_\   \
 |___________________________________________|

foonas-em for n1200 - http://foonas.org

n1200 login:

You have now booted with a foonas-em image. You should be able to log in with username "root" and password "hydr0g3n" over your existing serial port connection or telnet it via its DHCP assigned address. Should DHCP fail it will default to the IP address of 192.168.11.150.

Personal tools