This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8148启动问题



通过TFTP下载内核,用NFS网挂文件系统!但是内核启动成功后,文件系统一直挂载不了。之后不断自动重启。望各位大神指教!

Environment size: 944/65532 bytes
TI8148_D500#boot
PHY ID : 004dd074
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.34.59; our IP address is 192.168.34.111
Filename 'uImage-initramfs'.
Load address: 0x80007fc0
Loading: #################################################################
         ##########################################################T T T #######
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############################
done
Bytes transferred = 3468800 (34ee00 hex)
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3468736 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.37 (root@ema-infi) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #4 Fri Aug 23 11:54:01 CST 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ct8148
TI81xx: reserved VRAM size = 106954752 at -1386217472
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8148 3.0
SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 144264
Kernel command line: lpj=4997120 console=ttyO0,115200n8 mem=352M mem=320M@0x9FC00000 root=/dev/nfs rw nfsroot=192.168.34.59:/opt/targetfs,nolock rw rootfstype=nfs ip=DHCP rootwait notifyk.vpssm3_sva=0xBF900000 vmalloc=500M vram=102M printk.time=y earlyprintk noinitrd init=/linuxrc ip=192.168.34.111:192.168.34.59:192.168.34.254:255.255.255.0:8148evm:eth0:off ip=192.168.34.111::192.168.34.254:255.255.255.0:8148evm:eth0:off
[    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: 352MB 218MB = 570MB total
[    0.000000] Memory: 571012k/571012k available, 117116k reserved, 223232K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xd6800000 - 0xf8000000   ( 536 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd6000000   ( 352 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .init : 0xc0008000 - 0xc02cb000   (2828 kB)
[    0.000000]       .text : 0xc02cb000 - 0xc065c000   (3652 kB)
[    0.000000]       .data : 0xc065c000 - 0xc068eec0   ( 204 kB)
[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:375
[    0.000000] omap_hwmod: gpio1: softreset failed (waited 10000 usec)
[    0.000000] omap_hwmod: gpio2: softreset failed (waited 10000 usec)
[    0.000000] omap_hwmod: gpio3: softreset failed (waited 10000 usec)
[    0.000000] omap_hwmod: gpio4: softreset failed (waited 10000 usec)
[    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] GPMC revision 6.0
[    0.000000] Trying to install interrupt handler for IRQ368
[    0.000000] Trying to install interrupt handler for IRQ369
[    0.000000] Trying to install interrupt handler for IRQ370
[    0.000000] Trying to install interrupt handler for IRQ371
[    0.000000] Trying to install interrupt handler for IRQ372
[    0.000000] Trying to install interrupt handler for IRQ373
[    0.000000] Trying to install interrupt handler for IRQ374
[    0.000000] Trying to install type control for IRQ375
[    0.000000] Trying to set irq flags for IRQ375
[    0.000000] OMAP clockevent source: GPTIMER1 at 20000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.010000] Calibrating delay loop (skipped) preset value.. 999.42 BogoMIPS (lpj=4997120)
[    0.010000] pid_max: default: 32768 minimum: 301
[    0.010000] Security Framework initialized
[    0.010000] Mount-cache hash table entries: 512
[    0.010000] CPU: Testing write buffer coherency: ok
[    0.010000] devtmpfs: initialized
[    0.010000] omap_voltage_early_init: voltage driver support not added
[    0.010000] regulator: core version 0.5
[    0.010000] regulator: dummy:
[    0.010000] NET: Registered protocol family 16
[    0.010000] OMAP GPIO hardware version 0.1
[    0.010000] OMAP GPIO hardware version 0.1
[    0.010000] OMAP GPIO hardware version 0.1
[    0.010000] OMAP GPIO hardware version 0.1
[    0.010000] omap_mux_init: Add partition: #1: core, flags: 4
[    0.010000] registered ti814x_vpss device
[    0.010000] registered TI814x on-chip HDMI device
[    0.010000] 00000630 00003ebc 00000634 da407e84
[    0.020000] bio: create slab <bio-0> at 0
[    0.020000] SCSI subsystem initialized
[    0.020000] usbcore: registered new interface driver usbfs
[    0.020000] usbcore: registered new interface driver hub
[    0.020000] usbcore: registered new device driver usb
[    0.020000] USBSS revision 4ea2080b
[    0.020000] omap_i2c omap_i2c.1: bus 1 rev4.0 at 400 kHz
[    0.040000] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz
[    0.060000] omap_i2c omap_i2c.3: bus 3 rev4.0 at 400 kHz
[    0.080000] omap_i2c omap_i2c.4: bus 4 rev4.0 at 400 kHz
[    0.080000] Switching to clocksource gp timer
[    0.080000] musb-hdrc: version 6.0, host, debug=0
[    0.080000] musb-hdrc musb-hdrc.0: dma type: pio
[    0.080000] MUSB controller-0 revision 4ea20800
[    0.080000] usb2phy: computed values rxcalib(15)DACs(37 12 15)
[    0.080000] usb2phy: override computed values rxcalib(15)DACs(37 12 15)
[    0.080000] usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f72d97e
[    0.080000] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    0.080000] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[    0.080000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.080000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.080000] usb usb1: Product: MUSB HDRC host driver
[    0.080000] usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
[    0.080000] usb usb1: SerialNumber: musb-hdrc.0
[    0.080000] hub 1-0:1.0: USB hub found
[    0.080000] hub 1-0:1.0: 1 port detected
[    0.080000] musb-hdrc musb-hdrc.0: USB Host mode controller at d681e000 using PIO, IRQ 18
[    0.080000] musb-hdrc musb-hdrc.1: dma type: pio
[    0.080000] MUSB controller-1 revision 4ea20800
[    0.080000] usb2phy: computed values rxcalib(15)DACs(29 14 16)
[    0.080000] usb2phy: override computed values rxcalib(15)DACs(29 14 16)
[    0.080000] usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f6edd86
[    0.080000] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.080000] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[    0.080000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    0.080000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.080000] usb usb2: Product: MUSB HDRC host driver
[    0.090000] usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
[    0.090000] usb usb2: SerialNumber: musb-hdrc.1
[    0.090000] hub 2-0:1.0: USB hub found
[    0.090000] hub 2-0:1.0: 1 port detected
[    0.090000] musb-hdrc musb-hdrc.1: USB Host mode controller at d6822800 using PIO, IRQ 19
[    0.090000] NET: Registered protocol family 2
[    0.090000] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.090000] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.090000] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[    0.090000] TCP: Hash tables configured (established 65536 bind 65536)
[    0.090000] TCP reno registered
[    0.090000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.090000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.090000] NET: Registered protocol family 1
[    0.100000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.100000] PMU: registered new PMU device of type 0
[    0.100000] omap-iommu omap-iommu.0: ducati registered
[    0.100000] omap-iommu omap-iommu.1: sys registered
[    0.150000] highmem bounce pool size: 64 pages
[    0.160000] NTFS driver 2.1.29 [Flags: R/W].
[    0.160000] msgmni has been set to 679
[    0.160000] io scheduler noop registered
[    0.160000] io scheduler deadline registered
[    0.160000] io scheduler cfq registered (default)
[    0.160000] omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
[    0.890000] console [ttyO0] enabled
[    0.900000] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    0.900000] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    0.910000] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    0.920000] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    0.930000] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    0.940000] m25p80 spi1.0: found mx25l3205d, expected m25p80
[    0.940000] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    0.950000] Creating 6 MTD partitions on "spi_flash":
[    0.950000] 0x000000000000-0x000000020000 : "U-Boot-min"
[    0.960000] 0x000000020000-0x000000060000 : "U-Boot"
[    0.960000] 0x000000060000-0x000000070000 : "U-Boot ENV"
[    0.970000] 0x000000070000-0x000000080000 : "Mac"
[    0.970000] 0x000000080000-0x000000090000 : "Reserve"
[    0.980000] 0x000000090000-0x000000400000 : "Recovery"
[    1.040000] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    1.040000] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[    1.050000] davinci_mdio.0: probed
[    1.050000] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[    1.060000] Initializing USB Mass Storage driver...
[    1.060000] usbcore: registered new interface driver usb-storage
[    1.070000] USB Mass Storage support registered.
[    1.080000] mice: PS/2 mouse device common for all mice
[    1.080000] i2c /dev entries driver
[    1.090000] TCP cubic registered
[    1.090000] NET: Registered protocol family 17
[    1.090000] Registering the dns_resolver key type
[    1.100000] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    1.110000] omap_voltage_late_init: Voltage driver support not added
[    1.110000] Power Management for TI81XX.
[    1.120000] cpsw: Disable CPRGMII internal delay.
[    1.120000] Detected MACID=84:7e:40:da:bc:3e
[    1.210000] mmc0: new high speed MMC card at address 0001
[    1.210000] mmcblk0: mmc0:0001 MMC04G 3.55 GiB
[    1.220000]  mmcblk0: p1 p2 p3
[    1.250000] usb 1-1: new high speed USB device using musb-hdrc and address 2
[    1.390000] usb 1-1: New USB device found, idVendor=0409, idProduct=005a
[    1.390000] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.400000] hub 1-1:1.0: USB hub found
[    1.400000] hub 1-1:1.0: 4 ports detected
[    1.640000]
[    1.640000] CPSW phy found : id is : 0x4dd074
[    1.650000] PHY 0:01 not found
[    2.660000] IP-Config: Complete:
[    2.660000]      device=eth0, addr=192.168.34.111, mask=255.255.255.0, gw=192.168.34.254,
[    2.670000]      host=8148evm, domain=, nis-domain=(none),
[    2.670000]      bootserver=192.168.34.59, rootserver=192.168.34.59, rootpath=
[    2.680000] Freeing init memory: 2828K

Please press Enter to activate this console. + MOUNTPOINTA=/mnt/mmc
+ MOUNTPOINTB=/mnt/sdcard
+ MOUNTPOINTC=/mnt/boot
+ BOOTFS=/dev/mmcblk0p1
+ DATAFS=/dev/mmcblk0p2
+ ROOTFS=/dev/mmcblk0p3
+ PASSWORD=aR2-1eon8
+ UPDATEFILE=/mnt/mmc/ubuntu-d500-v03.tar.bz2
+ UPDATEFILE_FLAG=/mnt/mmc/ubuntu-d500-v03.zip
+ EXTRA_MEM=/dev/sda /dev/sda1
+ DIR=/firmware
+ echo Entering initramfs... V1.0
Entering initramfs... V1.0
+ busybox mount -a
+ busybox --install -s
+ echo heartbeat
+ tar xvf /cmd.tar.bz2 -C /
bin/unzip
lib/libgcc_s.so.1
+ + + cat /proc/cmdline
awk -Fserverip= {print$2}
cut -d   -f1
+ SERVERIP=
+ + + cat /proc/cmdline
awk -Fdir= {print$2}
cut -d   -f1
+ SERVERDIR=
+ HAVE=0
+ i=0
+ count=8
+ [ 0 = 0 ]
+ udhcpc -n -T 2 -t 5 -i eth0
udhcpc (v1.21.0) started
Setting IP address 0.0.0.0 on eth0
Sending discover...
[    4.640000] PHY: 0:00 - Link is Up - 100/Full
Sending discover...
Sending discover...
Sending discover...
Sending discover...
No lease, failing
+ [ 1 -eq 0 ]
+ [ 0 = 0 ]
+ [ 0 -le 8 ]
+ mount /dev/sda /mnt/mmc
mount: mounting /dev/sda on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ mount /dev/sda1 /mnt/mmc
mount: mounting /dev/sda1 on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ [ 0 = 1 ]
+ expr 0 + 1
+ i=1
+ [ 1 -le 8 ]
+ mount /dev/sda /mnt/mmc
mount: mounting /dev/sda on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ mount /dev/sda1 /mnt/mmc
mount: mounting /dev/sda1 on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ [ 0 = 1 ]
+ expr 1 + 1
+ i=2
+ [ 2 -le 8 ]
+ mount /dev/sda /mnt/mmc
mount: mounting /dev/sda on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ mount /dev/sda1 /mnt/mmc
mount: mounting /dev/sda1 on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ [ 0 = 1 ]
+ expr 2 + 1
+ i=3
+ [ 3 -le 8 ]
+ mount /dev/sda /mnt/mmc
mount: mounting /dev/sda on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ mount /dev/sda1 /mnt/mmc
mount: mounting /dev/sda1 on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar.bz2 ]
+ [ -f /mnt/mmc/ubuntu-d500-v03.zip ]
+ umount /mnt/mmc
+ [ 0 = 1 ]
+ expr 3 + 1
+ i=4
+ [ 4 -le 8 ]
+ mount /dev/sda /mnt/mmc
mount: mounting /dev/sda on /mnt/mmc failed: No such device or address
+ [ -f /mnt/mmc/ubuntu-d500-v03.tar[   13.000000] musb-hdrc musb-hdrc.1: remove, state 1
.bz2 ]
+ [ -f /[   13.000000] usb usb2: USB disconnect, address 1
mnt/mmc/ubuntu-d[   13.010000] musb-hdrc musb-hdrc.1: USB bus 2 deregistered
500-v03.zip ]
+[   13.020000] musb-hdrc musb-hdrc.0: remove, state 1
 umount /mnt/mmc[   13.020000] usb usb1: USB disconnect, address 1

+ mount /dev/s[   13.030000] usb 1-1: USB disconnect, address 2
da1 /mnt/mmc
mo[   13.030000] musb-hdrc musb-hdrc.0: USB bus 1 deregistered
unt: mounting /d[   13.040000] Restarting system.
ev/sda1 on /mnt/

#####  内核打印信息到这里之后,就自动重启UBOOT了。不知道什么问题!####


U-Boot 2010.06 (Sep 11 2013 - 14:20:58)

TI8148-GP rev 3.0

ARM clk: 1000MHz
DDR clk: 533MHz

I2C:   ready
DRAM:  1 GiB
Using default environment

RTC_CTRL = 0x1
Net:   <ethaddr> not set. Reading from E-fuse
Detected MACID:84:7e:40:da:bc:3e
cpsw
PHY ID : 004dd074
Hit any key to stop autoboot:  0
SF: Detected MX25L3205D with page size 256, total 4194304 bytes
4096 KiB MX25L3205D at 0:0 is now current device
## Starting application at 0x81000000 ...

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

下面是我的UBOOT启动参数:

baudrate=115200
verify=no
bootfile=uImage
ramdisk_file=ramdisk.gz
loadaddr=0x80007fc0
script_addr=0x80900000
loadbootscript=fatload mmc 0 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
ethact=cpsw
bootdelay=3
ethaddr=84:7e:40:da:bc:3e
hostname=8148evm
addip=set bootargs ${bootargs} ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}:${hostname}:eth0:off
gatewayip=192.168.34.254
serverip=192.168.34.59
netmask=255.255.255.0
ipaddr=192.168.34.111
bootcmd=run addip;tftp 0x80007fc0 uImage-initramfs;bootm
bootargs=lpj=4997120 console=ttyO0,115200n8 mem=352M mem=320M@0x9FC00000 root=/dev/nfs rw nfsroot=192.168.34.59:/opt/targetfs,nolock rw rootfstype=nfs ip=DHCP rootwait notifyk.vpssm3_sva=0xBF900000 vmalloc=500M vram=102M printk.time=y earlyprintk noinitrd init=/linuxrc ip=192.168.34.111:192.168.34.59:192.168.34.254:255.255.255.0:8148evm:eth0:off
filesize=FD236
autoload=no

######  我的BOOTARGS和BOOTCMD设置得对吗?######