|
From: | Jorge A. Castro |
Subject: | Re: [Ltib] RE: Linux 2.6.34 for FDI board and NFS issue |
Date: | Wed, 29 Sep 2010 14:20:30 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 |
Hi to all, Kevin: I create the device in the root fs. I added a line in the device_table.txt file, which is in the ./ltib/bin . Even though, I still get the message "Warning: unable to open an initial console." (I verified that the dev node was create in ./ltib/rootfs/dev) Mike and Daniel: You were right! The ethaddr is needed in the u-boot bootargs configuration. I confirm that looking more in the mailing list archives I'm going to explain, more or less, the steps I did in order to have linux 2.6.34 running on my FDI3250 board with NFS root fs. 1. Set the u-boot parameters, like: baudrate=115200 ethaddr=00:1a:f1:00:00:00 bootcmd=tftpboot; bootm bootfile=uImage loadaddr=0x80100000 bootdelay=2 serverip=192.168.100.84 ipaddr=192.168.100.85 gatewayip=192.168.100.50 netmask=255.255.255.0 root=/dev/nfs To set the bootargs, I did it following some explained by Henry in http://lists.gnu.org/archive/html/ltib/2010-07/msg00035.html. So I did setenv build_param 'setenv bootargs console=ttyTX0,115200n81 root=/dev/nfs rw nfsroot=192.168.100.84:/home/jcastro /ltib/rootfs,wsize=1500,rsize=1500 ip=192.168.100.85 ethaddr=${ethaddr} init=/sbin/init' and then run build_param saveenv 2. The NFS server in the host machine is set in the /etc/exports like /home/jcastro/ltib/rootfs 192.168.100.*(rw,no_root_squash,no_subtree_check,async) 3. And of course, set all needed in the LTIB configuration to have the root filesystem in NFS All set as above is what allow me have the board running the 2.6.34. Thanks to all for their answers, I hope this will help those who will implement this distribution in their FDI3250 boards. I paste here my boot output. Jorge Castro --------------------- boot output --------------------- uboot> run bootcmd HW MAC address: 00:1A:F1:00:00:00 ENET:auto-negotiation complete#$ ENET:HALF DUPLEX ENET:100MBase TFTP from server 192.168.100.84; our IP address is 192.168.100.85 Filename 'uImage'. Load address: 0x80100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################ done Bytes transferred = 1909528 (1d2318 hex) ## Booting kernel from Legacy Image at 80100000 ... Image Name: Linux-2.6.34 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1909464 Bytes = 1.8 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Linux version 2.6.34 (address@hidden) (gcc version 4.1.2) #1 PREEMPT Wed Sep 29 13:27:39 CST 2010 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Future Designs board with the LPC3250 Microcontroller Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: console=ttyTX0,115200n81 root=/dev/nfs rw nfsroot=192.168.100.84:/home/jcastro /ltib/rootfs,wsize=1500,rsize=1500 ip=192.168.100.85 ethaddr=00:1a:f1:00:00:00 init=/sbin/init PID hash table entries: 128 (order: -3, 512 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 32MB = 32MB total Memory: 28460k/28460k available, 4308k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xc2800000 - 0xf0000000 ( 728 MB) lowmem : 0xc0000000 - 0xc2000000 ( 32 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .init : 0xc0008000 - 0xc0027000 ( 124 kB) .text : 0xc0027000 - 0xc03a6000 (3580 kB) .data : 0xc03a6000 - 0xc03cb000 ( 148 kB) Hierarchical RCU implementation. NR_IRQS:96 Console: colour dummy device 80x30 Calibrating delay loop... 133.12 BogoMIPS (lpj=665600) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 LPC32XX unique ID: 00000000000000000000000000000000 bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource lpc32xx_clksrc NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NetWinder Floating Point Emulator V0.97 (double precision) JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. msgmni has been set to 55 alg: No test for stdrng (krng) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0x40090000 (irq = 9) is a 16550A lpc32xx_hsuart.0: ttyTX0 at MMIO 0x40014000 (irq = 26) is a lpc32xx_hsuart console [ttyTX0] enabled brd: module loaded loop: module loaded NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 515 at 0x000004060000 Bad eraseblock 593 at 0x000004a20000 Bad eraseblock 898 at 0x000007040000 Bad eraseblock 954 at 0x000007740000 Bad eraseblock 1347 at 0x00000a860000 Bad eraseblock 1369 at 0x00000ab20000 Bad eraseblock 1410 at 0x00000b040000 Creating 4 MTD partitions on "lpc32xx_nand": 0x000000000000-0x000000320000 : "fdi3250-boot" 0x000000320000-0x000000fe0000 : "fdi3250-uboot" 0x000000fe0000-0x0000013e0000 : "fdi3250-kernel" 0x0000013e0000-0x000010000000 : "fdi3250-jffs2" lpc_mii_bus: probed eth0: using RMII interface eth0: LPC mac at 0x31060000 irq 29 eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00, irq=-1) PPP generic driver version 2.4.2 usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ISP1301 Vendor ID : 0x04cc ISP1301 Product ID : 0x1301 ISP1301 Version ID : 0x0210 usb-ohci usb-ohci: at 0xf3120000, irq 0 usb-ohci usb-ohci: pnx4008 OHCI usb-ohci usb-ohci: new USB bus registered, assigned bus number 1 usb-ohci usb-ohci: irq 59, io mem 0xf3120000 usb usb1: New USB device found, idVendor=1d6b, idProduct=0001 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: pnx4008 OHCI usb usb1: Manufacturer: Linux 2.6.34 ohci_hcd usb usb1: SerialNumber: usb-ohci hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. mice: PS/2 mouse device common for all mice rtc-lpc32xx rtc-lpc32xx: rtc core: registered rtc-lpc32xx as rtc0 i2c /dev entries driver PNX4008-WDT: PNX4008 Watchdog Timer: heartbeat 19 sec cpuidle: using governor ladder cpuidle: using governor menu TCP cubic registered NET: Registered protocol family 17 ssp-pl022 dev:ssp0: ARM PL022 driver, device ID: 0x00041022 pl022: mapped registers from 0x20084000 to c2882000 CLCD: Toshiba 3.5 inch LCD hardware, QVGA portrait display Console: switching to colour frame buffer device 40x30 VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1 rtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-01 03:35:50 UTC (12950) IP-Config: Guessing netmask 255.255.255.0 IP-Config: Complete: device=eth0, addr=192.168.100.85, mask=255.255.255.0, gw=255.255.255.255, host=192.168.100.85, domain=, nis-domain=(none), bootserver=255.255.255.255, rootserver=192.168.100.84, rootpath= Warning: unable to open an initial console. Looking up port of RPC 100003/2 on 192.168.100.84 Looking up port of RPC 100005/1 on 192.168.100.84 VFS: Mounted root (nfs filesystem) on device 0:11. Freeing init memory: 124K Welcome to Future Designs, Inc. LPC3250 Linux The default password for the root account is: root please change this password using the 'passwd' command and then edit this message (/etc/issue) to remove this message nxp login: root Password: address@hidden /root]# cd .. address@hidden /]# On 09/28/2010 07:46 PM, Daniel Widyanto wrote: Hi Jorge, Mike's suggestion is correct. The LPC32xx ethernet driver needs ethaddr from the bootargs. For Linux-2.6.27.8, the 'ethaddr' is stored in SPI EEPROM. For Linux-2.6.34, the 'ethaddr' is stored in u-boot environment. >From your boot log, it seems like the 'ethaddr' is not set properly: --------------------------------------------------- Kernel command line: console=ttyTX0,115200n8 root=/dev/nfs rw nfsroot=192.168.100.84:/tftpboot/rootfs,wsize=1500,rsize=1500 ethadd r=${ethaddr} ip=dhcp init=/sbin/init --------------------------------------------------- Regards, -daniel-----Original Message----- From: address@hidden [mailto:ltib- address@hidden] On Behalf Of Mike Nelson Sent: Wednesday, September 29, 2010 6:51 AM To: Kevin Wells Cc: address@hidden Subject: Re: [Ltib] RE: Linux 2.6.34 for FDI board and NFS issue Kevin: I have been told by others on this list that for 2.6.34 the bootargs need an additional argument, ethaddr. For example: bootargs=console=ttyS0,115200n81 root=/dev/mtdblock4 rw rootfstype=jffs2 ip=dhcp init=/sbin/init ethaddr="xx:xx:xx:xx:xx:xx" Where xx:xx:xx:xx:xx:xx in the Ethernet MAC or hardware address, not the IP address. Regards: Mike Nelson, http://michaeltnelson.com mobile: 1-650-291-7343 office: 1-650-257-7565_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/ltib -- Jorge A. Castro Canam-Technology, Inc. |
[Prev in Thread] | Current Thread | [Next in Thread] |