2008-11-20 09:57:24     loading file system using nfsboot failed.

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-20 09:57:24     loading file system using nfsboot failed.

Maha lakshmi (INDIA)

Message: 65616   

 

Hi,

 

     I tried to load my file system (romfs) after loading vmlinux image using nfsboot but it failed.

 

     I've given following commands on u-boot.

 

     bfin> set rootargs /home/maha/filesys

bfin> setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

 

bfin> tftpboot 0x1000000 vmlinux

start Auto negotiation... (take ~2sec)

Auto negotiation complete, 100BaseTX, full duplex

TFTP from server 192.168.0.7; our IP address is 192.168.0.14

Filename 'vmlinux'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################

done

Bytes transferred = 3242866 (317b72 hex)

bfin> bootelf

Loading .text @ 0x00001000 (1696128 bytes)

Loading .rodata @ 0x001a0000 (455112 bytes)

Loading __ksymtab @ 0x0020f1c8 (17544 bytes)

Loading __ksymtab_gpl @ 0x00213650 (5552 bytes)

Loading __ksymtab_gpl_future @ 0x00214c00 (24 bytes)

Loading __ksymtab_strings @ 0x00214c18 (56856 bytes)

Loading __param @ 0x00222a30 (1440 bytes)

Loading .data @ 0x00223000 (118784 bytes)

Loading .init.text @ 0x00240000 (133552 bytes)

Loading .init.data @ 0x002609b0 (13080 bytes)

Loading .init.setup @ 0x00263cc8 (620 bytes)

Loading .initcall.init @ 0x00263f34 (600 bytes)

Loading .con_initcall.init @ 0x0026418c (8 bytes)

Loading .init.ramfs @ 0x00264194 (134 bytes)

Loading .text_l1 @ 0xffa00000 (5752 bytes)

sh_addr: FFA00000, p_paddr: 0026421A

Loading from: 01265000 to 0026421A, size: 5752

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 00265892

Loading from: 01267000 to 00265892, size: 192

Clearing .bss @ 0x00266000 (87024 bytes)

## Starting application at 0x00240000 ...

Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #40 Fri Nov 14 09:44:57 IS8early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x0019f180

  rodata    = 0x001a0000-0x00222fd0

  data      = 0x00223000-0x00240000

    stack   = 0x00224000-0x00226000

  init      = 0x00240000-0x00266000

  bss       = 0x00266000-0x0027b3f0

  available = 0x0027b3f0-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 15748

Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.7:/romfs rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 60360k/65536k RAM, (152k init code, 1656k kernel code, 728k data, 2048k dma, 588k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (42 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, ?dma?, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03c00 using PIO, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.18-ADI-2008R1-svn musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x0035e000 - 512 pages at 0x03e00000

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smsc911x: Driver version 2007-07-13.

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 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

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

  Unknown Intel/Sharp Extended Query version 1.5.

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "Linux Kernel"

0x00400000-0x10000000 : "File System"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

sl811: driver sl811-hcd, 19 May 2005

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ad7877 spi0.2: touchscreen, irq 123

input: AD7877 Touchscreen as /class/input/input0

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-20 00:16:02 (1642562)

VFS: Cannot open root device "nfs" or unknown-block(0,255)

Please append a correct "root=" boot option; here are the available partitions:

0800   39070080 sda driver: sd

  0801   33553027 sda1

1f00       4096 mtdblock0 (driver?)

1f01     258048 mtdblock1 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

 

Please tell me how to resolve this issue.

 

 

 

Thanks,

 

Maha

 

 

QuoteReplyEditDelete

 

 

2008-11-20 10:03:02     Re: loading file system using nfsboot failed.

Mike Frysinger (UNITED STATES)

Message: 65617   

 

again, read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:nfs

QuoteReplyEditDelete

 

 

2008-11-21 05:36:29     Re: loading file system using nfsboot failed.

Maha lakshmi (INDIA)

Message: 65679   

 

Hi,

 

    I read the document you have specified and I compiled the kernel but I couldn't mount nfs.

 

   The logs I got during kernel bootup are

 

 

 

  bfin> printenv

bootcmd=run ramboot

baudrate=57600

loads_echo=1

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf548-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x200000)addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethaddr=00:E0:22:FE:BC:38

ipaddr=192.168.0.14

serverip=192.168.0.7

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=ttyS0,57600

rootpath=/home/maha/filesys

nfsroot=192.168.0.7:/home/maha/filesys,tcp,nfsvers=3,rsize=1024,wsize=1024

stdin=serial

stdout=serial

stderr=serial

nfsargs=set bootargs root=/dev/nfs rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

 

Environment size: 1021/8188 bytes

bfin> run nfsboot

start Auto negotiation... (take ~2sec)

Auto negotiation complete, 100BaseTX, full duplex

TFTP from server 192.168.0.7; our IP address is 192.168.0.14

Filename 'vmImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #########################################

done

Bytes transferred = 1538552 (1779f8 hex)

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn

   Created:      2008-11-21   4:36:03 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1538488 Bytes =  1.5 MB

   Load Address: 00001000

   Entry Point:  0028e000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 28e000

Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #47 Fri Nov 21 10:05:56 IS8early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x001dbb40

  rodata    = 0x001dc000-0x0026ed80

  data      = 0x0026f000-0x0028e000

    stack   = 0x00270000-0x00272000

  init      = 0x0028e000-0x002b6000

  bss       = 0x002b6000-0x002d0b24

  available = 0x002d0b24-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 15748

Kernel command line: root=/dev/nfs rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600 ip=192.168.0.14:192.168.0.7:192.16fConfiguring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 60020k/65536k RAM, (160k init code, 1898k kernel code, 820k data, 2048k dma, 588k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (42 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, ?dma?, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03c00 using PIO, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.18-ADI-2008R1-svn musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x03d51000 - 512 pages at 0x03e00000

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smsc911x: Driver version 2007-07-13.

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 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

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

  Unknown Intel/Sharp Extended Query version 1.5.

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "Linux Kernel"

0x00400000-0x10000000 : "File System"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

sl811: driver sl811-hcd, 19 May 2005

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ad7877 spi0.2: touchscreen, irq 123

input: AD7877 Touchscreen as /class/input/input0

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-20 19:50:26 (1713026)

eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: SMSC911x MAC Address: 00:e0:22:fe:bc:38

eth0: link down

IP-Config: Complete:

      device=eth0, addr=192.168.0.14, mask=255.255.255.0, gw=192.168.0.1,

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=192.168.0.7, rootserver=192.168.0.7, rootpath=

Looking up port of RPC 100003/2 on 192.168.0.7

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

Looking up port of RPC 100005/1 on 192.168.0.7

Root-NFS: Server returned error -13 while mounting /tftpboot/bf548-ezkit

VFS: Unable to mount root fs via NFS, trying floppy.

VFS: Cannot open root device "nfs" or unknown-block(2,0)

Please append a correct "root=" boot option; here are the available partitions:

0800   39070080 sda driver: sd

  0801   33553027 sda1

1f00       4096 mtdblock0 (driver?)

1f01     258048 mtdblock1 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 

The Distribution I have used is uClinux-dist-2008R1-RC8 and the u-boot is u-boot-bf548-ezkit-uart-2008R1.5.ldr which I've downloaded from this site.

 

Please tell me what is the problem and  how can I rectify it??

 

 

 

Thanks,

 

Maha

QuoteReplyEditDelete

 

 

2008-11-21 11:13:08     Re: loading file system using nfsboot failed.

Mike Frysinger (UNITED STATES)

Message: 65691   

 

your server is misconfigured just like the output says:

Root-NFS: Server returned error -13 while mounting /tftpboot/bf548-ezkit

 

-13 is -EACCESS, or permission denied

QuoteReplyEditDelete

 

 

2008-11-25 08:30:04     Re: loading file system using nfsboot failed.

Maha lakshmi (INDIA)

Message: 65786   

 

Mike,

 

     Thanks for your reply but I couldn't sort out this problem yet. I tried a lot but still I got the same error 'server misconfigured'.

 

     Please tell me what are correct configurations of nfs server.

 

     Right now, I followed the below steps

 

     my /etc/exports contains

 

     /home/maha/filesys 192.168.0.5(rw,no_root_squash,no_all_squash,sync)

 

     exportfs -a

 

    service nfs restart.

 

    That's it!!

 

     Please help me in solving this problem.

 

Thanks,

 

Maha

QuoteReplyEditDelete

 

 

2008-11-25 09:23:30     Re: loading file system using nfsboot failed.

Maha lakshmi (INDIA)

Message: 65788   

 

Mike,

 

    I could mount nfs file system. I couldn't get the prompt. Please look at the kernel bootup logs and I got the error 'unable to open an initial console'

 

    bfin> printenv

bootcmd=run ramboot

baudrate=57600

loads_echo=1

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf548-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x200000)addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethaddr=00:E0:22:FE:BC:38

ipaddr=192.168.0.14

serverip=192.168.0.7

rootpath=/home/maha/filesys

nfsroot=192.168.0.7:/home/maha/filesys,tcp,nfsvers=3,rsize=1024,wsize=1024

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=ttyBF0,57600

stdin=serial

stdout=serial

stderr=serial

nfsargs=set bootargs root=/dev/nfs rw nfsroot=192.168.0.7:/home/maha/filesys,tcp,nfsvers=3 earlyprintk=serial,uart1,57600 console=ttyBF0,57600

Environment size: 1075/8188 bytes

 

bfin> run nfsboot

start Auto negotiation... (take ~2sec)

Auto negotiation complete, 100BaseTX, full duplex

TFTP from server 192.168.0.7; our IP address is 192.168.0.14

Filename 'vmImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #########################################

done

Bytes transferred = 1538552 (1779f8 hex)

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn

   Created:      2008-11-21   4:36:03 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1538488 Bytes =  1.5 MB

   Load Address: 00001000

   Entry Point:  0028e000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 28e000

Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #47 Fri Nov 21 10:05:56 IS8early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x001dbb40

  rodata    = 0x001dc000-0x0026ed80

  data      = 0x0026f000-0x0028e000

    stack   = 0x00270000-0x00272000

  init      = 0x0028e000-0x002b6000

  bss       = 0x002b6000-0x002d0b24

  available = 0x002d0b24-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 15748

Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.7:/home/maha/filesys,tcp,nfsvers=3 earlyprintk=serial,uart1,57600 cofConfiguring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 60020k/65536k RAM, (160k init code, 1898k kernel code, 820k data, 2048k dma, 588k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (42 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, ?dma?, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03c00 using PIO, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.18-ADI-2008R1-svn musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x03d51000 - 512 pages at 0x03e00000

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smsc911x: Driver version 2007-07-13.

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 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

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

  Unknown Intel/Sharp Extended Query version 1.5.

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "Linux Kernel"

0x00400000-0x10000000 : "File System"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

sl811: driver sl811-hcd, 19 May 2005

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ad7877 spi0.2: touchscreen, irq 123

input: AD7877 Touchscreen as /class/input/input0

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-24 23:40:59 (2072459)

eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: SMSC911x MAC Address: 00:e0:22:fe:bc:38

eth0: link down

IP-Config: Complete:

      device=eth0, addr=192.168.0.14, mask=255.255.255.0, gw=192.168.0.1,

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=192.168.0.7, rootserver=192.168.0.7, rootpath=

Looking up port of RPC 100003/3 on 192.168.0.7

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: Product: Cruzer Mini

usb 1-1: Manufacturer: SanDisk Corporation

usb 1-1: SerialNumber: 20041100520c8691b7e2

usb 1-1: configuration #1 chosen from 1 choice

scsi1 : SCSI emulation for USB Mass Storage devices

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

Looking up port of RPC 100005/3 on 192.168.0.7

scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer Mini      0.4  PQ: 0 ANSI: 2

sd 1:0:0:0: [sdb] 2001888 512-byte hardware sectors (1025 MB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sd 1:0:0:0: [sdb] 2001888 512-byte hardware sectors (1025 MB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sdb: sdb1

sd 1:0:0:0: [sdb] Attached SCSI removable disk

VFS: Mounted root (nfs filesystem).

Freeing unused kernel memory: 160k freed

Warning: unable to open an initial console.

 

 

Thanks,

 

Maha

QuoteReplyEditDelete

 

 

2008-11-25 11:11:48     Re: loading file system using nfsboot failed.

Wolfgang Muees (GERMANY)

Message: 65792   

 

Maha,

 

your /etc/exports is:

 

/home/maha/filesys 192.168.0.5(rw,no_root_squash,no_all_squash,sync)

 

You should open your nfs to the whole network:

 

/home/maha/filesys 192.168.0.0/24(rw,no_root_squash,no_all_squash,sync)

 

so you will not have to change your export file every time you use a new IP for your target.

 

 

 

Inside your nfs exported filesystem, you miss the file /dev/console.

 

Create this file with mknod or copy it from another source. YOU NEED TO BE ROOT to do this.

 

regards

 

Wolfgang

TranslateQuoteReplyEditDelete

 

 

2008-11-26 02:45:01     Re: loading file system using nfsboot failed.

Mike Frysinger (UNITED STATES)

Message: 65818   

 

looks to me like the nfs was mounted and userspace started up just fine.  if you're wondering about the initial console line, you need to make sure your nfs root has device nodes properly created as documented.  that includes /dev/console device nodes.

QuoteReplyEditDelete

 

 

2008-11-26 06:13:57     Re: loading file system using nfsboot failed.

Maha lakshmi (INDIA)

Message: 65843   

 

Hi,

 

     I created /dev/console in my filesystem. Now it's mounted.

 

Thanks,

 

Maha

Attachments

    Outcomes