Hi Community,
I have been trying with NFS the file system in my PhyCORE-AM335x PCB 1358.2
load. The Tools are used for this:
-OSELAS.Toolchain-2011.11.3
-BSP-phyCORE-AM335x-PD12.1.0
-Ptxdist 2012.03.0
-Barebox
____________________________________________________________
In the host the /etc/exports file has this configuration:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check)
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
#This is for sitara TI
# /home/ 192.168.3.0/225.225.225.0(rw,no_root_squash,no_subtree_check)
# /home/sst/sitara/targetNFS
*(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
#This if for Phy-CORE
/opt/ 192.168.3.0/225.225.225.0(rw,no_root_squash,no_subtree_check)
/opt/phyCORE-AM335x-PD12.1.0/NFS *(rw,sync,no_root_squash,no_subtree_check)
_______________________________________________________
_____________________________________
the /opt/phyCORE-AM335x-PD12.1.0/NFS is where I descompresed the file root.tgz
----------------------------------------------------------
the /env/config in the target for the barebox is:
_____________________________________________________________
#!/bin/sh
machine=pcm051
user=
# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
#ip=dhcp
# or set your networking parameters here
eth0.ipaddr=192.168.3.11
eth0.netmask=255.255.255.0
eth0.gateway=192.168.3.1
eth0.serverip=192.168.3.58
# can be either 'tftp', 'disk', 'nor' or 'nand'
kernel_loc=nand
# can be either 'disk', 'net', 'nand' or 'initrd'
rootfs_loc=net
# can be either 'jffs2' 'ext3' or 'ubifs'
rootfs_type=ext3
rootfsimage=root-$machine.$rootfs_type
# The image type of the kernel.
kernelimage_type=uimage
kernelimage=linuximage
if [ -n $user ]; then
kernelimage="$user"-"$kernelimage"
nfsroot="$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/root"
rootfsimage="$user"-"$rootfsimage"
else
nfsroot="$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/root"
fi
autoboot_timeout=3
bootargs="console=ttyO0,115200"
#Flash
nand_parts="128k(xload),128k(xload_backup1),128k(xload_backup2),128k(xload_backu
nor_parts="128k(xload),512k(barebox),128k(bareboxenv),4M(kernel),-(root)"
rootfs_mtdblock_nand="12,2048"
nand_device="omap2-nand.0"
nor_device="spi_flash"
rootfs_part_linux_dev=mmcblk0p2
kernel_part=disk0.0
# set a fancy prompt (if support is compiled in)
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
#Displays
#bootargs="$bootargs da8xx_fb.panel_name=PV_PD050VL1"
#bootargs="$bootargs da8xx_fb.panel_name=PV_PD104SLF"
bootargs="$bootargs da8xx_fb.panel_name=PV_PM070WL4"
__________________________________________________________________
but the log in the boot shows that:
____________________________________________________________________
do_tftpb: /.tftp_tmp_path/linuximage -> /image
100Mbps full duplex link detected
[#################################################################]
booting kernel from /image
Image Name: Linux-3.2.0
OS: Linux
Architecture: ARM
Type: Kernel Image
Compression: uncompressed
Data Size: 3362344 Bytes = 3.2 MB
Load Address: 80008000
Entry Point: 80008000
commandline: console=ttyO0,115200 da8xx_fb.panel_name=PV_PM070WL4
ip=192.168.3.11:192.168.3.58:192.168.3.1:255.255.255.0::eth0: r
oot=/dev/nfs nfsroot=192.168.3.58:/opt/phyCORE-AM335x-PD12.1.0/NFS/root,v3,tcp
noinitrd mtdparts=omap2-nand.0:128k(xload),128k(xl
oad_backup1),128k(xload_backup2),128k(xload_backup3),512k(barebox)ro,128k(bareboxenv),4M(kernel),-(root);spi_flash:128k(xload),51
2k(barebox),128k(bareboxenv),4M(kernel),-(root)
arch_number: 4144
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (sst@sst-virtual-machine) (gcc version 4.6.2
(OSELAS.Toolchain-2011.11.3 linaro-4.6-2011.11) )
#3 PREEMPT Mon Feb 11 11:23:57 CET 2013
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] Machine: pcm051
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total
pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200
da8xx_fb.panel_name=PV_PM070WL4 ip=192.168.3.11:192.168.3.58:192.168.3.1
:255.255.255.0::eth0: root=/dev/nfs
nfsroot=192.168.3.58:/opt/phyCORE-AM335x-PD12.1.0/NFS/root,v3,tcp noinitrd
mtdparts=omap2-nan
d.0:128k(xload),128k(xload_backup1),128k(xload_backup2),128k(xload_backup3),512k(barebox)ro,128k(bareboxenv),4M(kernel),-(root);s
pi_flash:128k(xload),512k(barebox),128k(bareboxenv),4M(kernel),-(root)
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 512516k/512516k available, 11772k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc060f000 (6172 kB)
[ 0.000000] .init : 0xc060f000 - 0xc065e000 ( 316 kB)
[ 0.000000] .data : 0xc065e000 - 0xc06be5e8 ( 386 kB)
[ 0.000000] .bss : 0xc06be60c - 0xc07100ac ( 327 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128
interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 25000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every
131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000244] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.057006] pid_max: default: 32768 minimum: 301
[ 0.057312] Security Framework initialized
[ 0.057434] Mount-cache hash table entries: 512
[ 0.058074] CPU: Testing write buffer coherency: ok
[ 0.058166] ftrace: allocating 19686 entries in 58 pages
[ 0.124267] devtmpfs: initialized
[ 0.145263] omap_hwmod: pruss: failed to hardreset
[ 0.146881] print_constraints: dummy:
[ 0.147583] NET: Registered protocol family 16
[ 0.151000] OMAP GPIO hardware version 0.1
[ 0.156250] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.156677] The board is a PCM051 phyCORE-AM335x
[ 0.156677] Muxing pins with CBMUX_VAL = 2
[ 0.156707] Setting JP3
[ 0.156738] Setting JP4
[ 0.156860] d_can.1: alias fck already exists
[ 0.157684] da8xx_lcdc.0: alias fck already exists
[ 0.158752] omap_hsmmc.0: alias fck already exists
[ 0.162445] omap_i2c.1: alias fck already exists
[ 0.163757] omap2_mcspi.1: alias fck already exists
[ 0.164550] omap2_mcspi.2: alias fck already exists
[ 0.164978] edma.0: alias fck already exists
[ 0.165008] edma.0: alias fck already exists
[ 0.165039] edma.0: alias fck already exists
[ 0.206481] bio: create slab <bio-0> at 0
[ 0.210174] SCSI subsystem initialized
[ 0.213897] usbcore: registered new interface driver usbfs
[ 0.214447] usbcore: registered new interface driver hub
[ 0.214782] usbcore: registered new device driver usb
[ 0.215026] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.215454] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.217437] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.219116] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.221710] print_constraints: VRTC:
[ 0.223693] print_constraints: VIO: at 1500 mV
[ 0.226226] print_constraints: VDD1: 600 <--> 1500 mV at 1100 mV normal
[ 0.228637] print_constraints: VDD2: at 1100 mV
[ 0.229797] print_constraints: VDD3: 5000 mV
[ 0.231353] print_constraints: VDIG1: at 1800 mV
[ 0.232971] print_constraints: VDIG2: at 1800 mV
[ 0.234588] print_constraints: VPLL: at 1800 mV
[ 0.236145] print_constraints: VDAC: at 1800 mV
[ 0.237731] print_constraints: VAUX1: at 1800 mV
[ 0.239288] print_constraints: VAUX2: at 3300 mV
[ 0.240844] print_constraints: VAUX33: at 3300 mV
[ 0.242431] print_constraints: VMMC: at 3300 mV
[ 0.243225] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.245086] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.246917] Switching to clocksource gp timer
[ 0.299987] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.300262] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.300689] MUSB0 controller's USBSS revision = 4ea20800
[ 0.301483] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using
PIO, IRQ 18
[ 0.301788] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.302185] MUSB1 controller's USBSS revision = 4ea20800
[ 0.302337] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.302490] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus
number 1
[ 0.302673] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.302703] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 0.302734] usb usb1: Product: MUSB HDRC host driver
[ 0.302734] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.302734] usb usb1: SerialNumber: musb-hdrc.1
[ 0.304077] hub 1-0:1.0: USB hub found
[ 0.304107] hub 1-0:1.0: 1 port detected
[ 0.305023] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800
using PIO, IRQ 19
[ 0.305999] NET: Registered protocol family 2
[ 0.306365] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.307403] TCP established hash table entries: 16384 (order: 5, 131072
bytes)
[ 0.307739] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.307952] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.307983] TCP reno registered
[ 0.307983] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.308013] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.308441] NET: Registered protocol family 1
[ 0.309204] RPC: Registered named UNIX socket transport module.
[ 0.309204] RPC: Registered udp transport module.
[ 0.309234] RPC: Registered tcp transport module.
[ 0.309234] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.309631] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.309906] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.309936] Registering NAND on CS0
[ 0.333770] VFS: Disk quotas dquot_6.5.2
[ 0.333923] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.335632] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
[ 0.336822] msgmni has been set to 1001
[ 0.338439] io scheduler noop registered
[ 0.338470] io scheduler deadline registered
[ 0.338745] io scheduler cfq registered (default)
[ 0.341308] da8xx_lcdc da8xx_lcdc.0: GLCD: Found PV_PM070WL4 panel
[ 0.359344] Console: switching to colour frame buffer device 100x30
[ 0.370117] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.372985] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.070037] console [ttyO0] enabled
[ 1.074401] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.082366] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.090484] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.098419] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.106231] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.130706] brd: module loaded
[ 1.142456] loop: module loaded
[ 1.145935] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.152465] i2c-core: driver [tsl2550] using legacy resume method
[ 1.158843] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.169769] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.176635] m25p80 spi1.0: found s25fl064k, expected w25q64
[ 1.182434] m25p80 spi1.0: s25fl064k (8192 Kbytes)
[ 1.187377] 5 cmdlinepart partitions found on MTD device spi_flash
[ 1.193664] Creating 5 MTD partitions on "spi_flash":
[ 1.198822] 0x000000000000-0x000000020000 : "xload"
[ 1.206146] 0x000000020000-0x0000000a0000 : "barebox"
[ 1.213562] 0x0000000a0000-0x0000000c0000 : "bareboxenv"
[ 1.221221] 0x0000000c0000-0x0000004c0000 : "kernel"
[ 1.228637] 0x0000004c0000-0x000000800000 : "root"
[ 1.236389] omap2-nand driver initializing
[ 1.241180] ONFI flash detected
[ 1.244476] ONFI param page 0 valid
[ 1.248077] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron
MT29F4G08ABADAH4)
[ 1.256256] 8 cmdlinepart partitions found on MTD device omap2-nand.0
[ 1.262786] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.268310] 0x000000000000-0x000000020000 : "xload"
[ 1.275543] 0x000000020000-0x000000040000 : "xload_backup1"
[ 1.283569] 0x000000040000-0x000000060000 : "xload_backup2"
[ 1.291534] 0x000000060000-0x000000080000 : "xload_backup3"
[ 1.299560] 0x000000080000-0x000000100000 : "barebox"
[ 1.307220] 0x000000100000-0x000000120000 : "bareboxenv"
[ 1.315032] 0x000000120000-0x000000520000 : "kernel"
[ 1.325714] 0x000000520000-0x000020000000 : "root"
[ 1.757873] OneNAND driver initializing
[ 1.765502] CAN device driver interface
[ 1.769683] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.776214] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.827606] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.833892] davinci_mdio davinci_mdio.0: detected phy mask fffffffa
[ 1.842102] CLKSKEW == 0x7070
[ 1.845581] RXSKEW == 0x0
[ 1.848785] TXSKEW == 0x0
[ 1.851745] davinci_mdio.0: probed
[ 1.855224] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC
LAN8710/LAN8720
[ 1.863616] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver Micrel
KSZ9021 Gigabit PHY
[ 1.873077] usbcore: registered new interface driver cdc_ether
[ 1.879364] usbcore: registered new interface driver cdc_subset
[ 1.885437] Initializing USB Mass Storage driver...
[ 1.890808] usbcore: registered new interface driver usb-storage
[ 1.896911] USB Mass Storage support registered.
[ 1.902221] usbcore: registered new interface driver usbserial
[ 1.908233] usbserial: USB Serial Driver core
[ 1.913574] mousedev: PS/2 mouse device common for all mice
[ 1.920928] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input0
[ 1.930328] i2c /dev entries driver
[ 1.935150] lirc_dev: IR Remote Control driver registered, major 252
[ 1.941894] IR NEC protocol handler initialized
[ 1.946502] IR RC5(x) protocol handler initialized
[ 1.951416] IR RC6 protocol handler initialized
[ 1.956024] IR JVC protocol handler initialized
[ 1.960632] IR Sony protocol handler initialized
[ 1.965301] IR RC5 (streamzap) protocol handler initialized
[ 1.970977] IR MCE Keyboard/mouse protocol handler initialized
[ 1.976898] IR LIRC bridge handler initialized
[ 1.981414] Linux video capture interface: v2.00
[ 1.986633] usbcore: registered new interface driver uvcvideo
[ 1.992553] USB Video Class driver (1.1.1)
[ 1.999542] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 2.008666] cpuidle: using governor ladder
[ 2.013732] cpuidle: using governor menu
[ 2.024566] usbcore: registered new interface driver usbhid
[ 2.030548] usbhid: USB HID core driver
[ 2.035491] usbcore: registered new interface driver snd-usb-audio
[ 2.044097] ALSA device list:
[ 2.047088] No soundcards found.
[ 2.050720] oprofile: hardware counters not available
[ 2.055847] oprofile: using timer interrupt.
[ 2.060272] nf_conntrack version 0.5.0 (8008 buckets, 32032 max)
[ 2.067230] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.072906] TCP cubic registered
[ 2.076202] NET: Registered protocol family 17
[ 2.080780] can: controller area network core (rev 20090105 abi 8)
[ 2.087280] NET: Registered protocol family 29
[ 2.091827] can: raw protocol (rev 20090105)
[ 2.096160] can: broadcast manager protocol (rev 20090105 t)
[ 2.101989] Registering the dns_resolver key type
[ 2.106872] VFP support v0.3: implementor 41 architecture 3 part 30 variant
c rev 3
[ 2.114685] ThumbEE CPU extension supported.
[ 2.121093] Power Management for AM33XX family
[ 2.130889] Detected MACID=0:18:31:93:81:51
[ 2.137084] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 2.146850] net eth0: CPSW phy found : id is : 0x7c0f1
[ 2.153381] CLKSKEW == 0x7070
[ 2.156860] RXSKEW == 0x0
[ 2.160003] TXSKEW == 0x0
[ 2.162689] net eth0: CPSW phy found : id is : 0x221611
[ 3.188201] IP-Config: Complete:
[ 3.191558] device=eth0, addr=192.168.3.11, mask=255.255.255.0,
gw=192.168.3.1,
[ 3.199401] host=192.168.3.11, domain=, nis-domain=(none),
[ 3.205505] bootserver=192.168.3.58, rootserver=192.168.3.58, rootpath=
[ 4.138458] PHY: 0:02 - Link is Up - 0/Half
[ 4.158691] PHY: 0:02 - Link is Down
[ 5.138305] PHY: 0:00 - Link is Up - 100/Full
[ 5.253997] VFS: Mounted root (nfs filesystem) on device 0:15.
[ 5.261169] devtmpfs: error mounting -2
[ 5.266326] Freeing init memory: 316K
[ 5.278381] Kernel panic - not syncing: No init found. Try passing init=
option to kernel. See Linux Documentation/init.txt f
or guidance.
[ 5.291259] Backtrace:
[ 5.293884] [<c0017d14>] (dump_backtrace+0x0/0x114) from [<c04876b4>]
(dump_stack+0x20/0x24)
[ 5.302612] r6:c00438e4 r5:00000000 r4:c06bf558 r3:00000000
[ 5.308563] [<c0487694>] (dump_stack+0x0/0x24) from [<c04882d8>]
(panic+0x74/0x1a0)
[ 5.316497] [<c0488264>] (panic+0x0/0x1a0) from [<c04875cc>]
(init_post+0xb0/0xd4)
[ 5.324462] r3:df869c00 r2:00000009 r1:00000080 r0:c057db38
[ 5.330413] r7:00000013
[ 5.333068] [<c048751c>] (init_post+0x0/0xd4) from [<c060f92c>]
(kernel_init+0xf8/0x120)
[ 5.341461] r4:c065d894 r3:df401798
[ 5.345214] [<c060f834>] (kernel_init+0x0/0x120) from [<c00438e4>]
(do_exit+0x0/0x31c)