Dear Sir/Lady,
I compile the MLO, u-boot.bin and uImage without problem (applied 5.02 SDK linux with beagle-xm configuration). But I don't know how to create the boot.scr script for my project. Here is the environment info (using "pri" under u-boot prompt):
Texas Instruments X-Loader 1.51 (Aug 24 2012 - 14:24:16)
Unsupported Chip!
Beagle xM Rev A
UNICORN-Robert-SHEEPBOARD test build--Rev:02-----------------------
Starting X-loader on MMC
Reading boot sector
219156 Bytes Read from MMC
Starting OS Bootloader from MMC...
Starting OS Bootloader...
U-Boot 2010.06 (Aug 24 2012 - 15:44:44)
OMAP34xx/35xx-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
RAM Configuration:
Bank #0: 80000000 512 MiB
Bank #1: a0000000 0 Bytes
DRAM: 512 MiB
NAND: HW ECC [Kernel/FS layout] selected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit
)
NAND bus width 16 instead 8 bit
0 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Beagle unknown 0x02
Die ID #3e2c00029e3800000168263d1802b01f
Hit any key to stop autoboot: 0
mmc1 is available
reading boot.scr
464 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
syntax error
OMAP3 beagleboard.org # pri
bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if ru
n loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi
bootdelay=10
baudrate=115200
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyO2,115200n8
mpurate=500
vram=12M
dvimode=1024x768MR-16@60
defaultdisplay=dvi
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
mmcargs=setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapf
b.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfst
ype=${mmcrootfstype}
nandargs=setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omap
fb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${nandroot} rootf
stype=${nandrootfstype}
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000
400000; bootm ${loadaddr}
stdin=serial
stdout=serial
stderr=serial
dieid#=3e2c00029e3800000168263d1802b01f
filesize=1D0
Environment size: 1208/131068 bytes
OMAP3 beagleboard.org #
When I ignore the boot.scr file (no boot.scr in SD card), the kernel will be loaded, and then panic on VFS mount error.
Please see the log below for more detail:
Texas Instruments X-Loader 1.51 (Aug 24 2012 - 14:24:16)
Unsupported Chip!
Beagle xM Rev A
UNICORN-Robert-SHEEPBOARD test build--Rev:02-----------------------
Starting X-loader on MMC
Reading boot sector
219156 Bytes Read from MMC
Starting OS Bootloader from MMC...
Starting OS Bootloader...
U-Boot 2010.06 (Aug 24 2012 - 15:44:44)
OMAP34xx/35xx-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
RAM Configuration:
Bank #0: 80000000 512 MiB
Bank #1: a0000000 0 Bytes
DRAM: 512 MiB
NAND: HW ECC [Kernel/FS layout] selected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit
)
NAND bus width 16 instead 8 bit
0 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Beagle unknown 0x02
Die ID #13c600029e3800000168263d18025021
Hit any key to stop autoboot: 0
mmc1 is available
reading boot.scr
Invalid FAT entry
** Unable to read "boot.scr" from mmc 0:1 **
reading uImage
3118960 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3118896 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 2.6.37 (ubuntu@ubuntu) (gcc version 4.3.3 (GCC) ) #
1 Fri Aug 24 16:45:57 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.2 (l2cache sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 126976
[ 0.000000] Kernel command line: console=ttyO2,115200n8 mpurate=500 vram=12M
omapfb.mode=dvi:1024x768MR-16@60 omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw roo
tfstype=ext3 rootwait
[ 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: 500MB = 500MB total
[ 0.000000] Memory: 493996k/493996k available, 30292k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc003d000 ( 212 kB)
[ 0.000000] .text : 0xc003d000 - 0xc05d15fc (5714 kB)
[ 0.000000] .data : 0xc05d2000 - 0xc078e020 (1777 kB)
[ 0.000000] NR_IRQS:409
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
[ 0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
[ 0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
[ 0.000000] Reprogramming SDRC clock to 400000000 Hz
[ 0.000000] dpll3_m2_clk rate change failed: -22
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupt
s
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] GPMC revision 5.0
[ 0.000000] Trying to install interrupt handler for IRQ402
[ 0.000000] Trying to install interrupt handler for IRQ403
[ 0.000000] Trying to install interrupt handler for IRQ404
[ 0.000000] Trying to install interrupt handler for IRQ405
[ 0.000000] Trying to install interrupt handler for IRQ406
[ 0.000000] Trying to install interrupt handler for IRQ407
[ 0.000000] Trying to install interrupt handler for IRQ408
[ 0.000000] Trying to install type control for IRQ409
[ 0.000000] Trying to set irq flags for IRQ409
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo
Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3951 kB
[ 0.000000] per task-struct memory footprint: 2304 bytes
[ 0.000000] Calibrating delay loop... 500.97 BogoMIPS (lpj=1953792)
[ 0.000000] pid_max: default: 32768 minimum: 301
[ 0.000000] Security Framework initialized
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] regulator: core version 0.5
[ 0.000000] regulator: dummy:
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.000000] OMAP3 Beagle Rev: unknown 2
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] Unable to get DVI reset GPIO
[ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.000000] Switched to new clocking rate (Crystal/Core/MPU): 26.0/400/500 MH
z
[ 0.000000] OMAP DMA hardware revision 5.0
[ 0.122070] bio: create slab <bio-0> at 0
[ 0.131408] SCSI subsystem initialized
[ 0.143310] usbcore: registered new interface driver usbfs
[ 0.144287] usbcore: registered new interface driver hub
[ 0.145507] usbcore: registered new device driver usb
[ 0.148681] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
[ 0.159606] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.172546] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.172760] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.175476] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.189697] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[ 0.192871] regulator: VDAC: 1800 mV normal standby
[ 0.196136] regulator: VDVI: 1800 mV normal standby
[ 0.199798] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
[ 0.202972] regulator: VAUX3: 1800 mV normal standby
[ 0.206329] regulator: VAUX4: 1800 mV normal standby
[ 0.206848] omap_device: omap_i2c.1: new worst case deactivate latency 0: 305
17
[ 0.218200] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz
[ 0.231231] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[ 0.239776] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.244445] Switching to clocksource 32k_counter
[ 0.394592] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
[ 0.396209] NET: Registered protocol family 2
[ 0.397033] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.399047] TCP established hash table entries: 16384 (order: 5, 131072 bytes
)
[ 0.399871] TCP bind hash table entries: 16384 (order: 7, 720896 bytes)
[ 0.411102] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.411224] TCP reno registered
[ 0.411254] UDP hash table entries: 256 (order: 2, 24576 bytes)
[ 0.411651] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes)
[ 0.412902] NET: Registered protocol family 1
[ 0.414581] RPC: Registered udp transport module.
[ 0.414611] RPC: Registered tcp transport module.
[ 0.414642] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.415802] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.418762] omap_init_opp_table: no hwmod or odev for iva, [6] cannot add OPP
s.
[ 0.422058] omap-iommu omap-iommu.0: isp registered
[ 0.423126] AM37x/DM37x Linux PSP version 04.02.00.07 (OMAP3BEAGLE)
[ 0.616241] VFS: Disk quotas dquot_6.5.2
[ 0.616394] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.619323] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.620666] msgmni has been set to 964
[ 0.625457] io scheduler noop registered
[ 0.625488] io scheduler deadline registered
[ 0.625732] io scheduler cfq registered (default)
[ 0.690124] OMAP DSS rev 2.0
[ 0.690704] OMAP DISPC rev 3.0
[ 0.690856] OMAP VENC rev 2
[ 0.692169] OMAP DSI rev 1.0
[ 1.021484] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.031127] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 1.033355] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 1.035125] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.767150] console [ttyO2] enabled
[ 1.772918] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[ 1.833343] brd: module loaded
[ 1.862213] loop: module loaded
[ 1.872894] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.879791] omap2-nand driver initializing
[ 1.884674] ONFI flash detected
[ 1.888275] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron )
[ 1.895294] Creating 5 MTD partitions on "omap2-nand.0":
[ 1.900909] 0x000000000000-0x000000080000 : "X-Loader"
[ 1.916778] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.929992] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.942962] 0x000000280000-0x000000680000 : "Kernel"
[ 1.957275] 0x000000680000-0x000020000000 : "File System"
[ 2.203460] OneNAND driver initializing
[ 2.214233] usbcore: registered new interface driver asix
[ 2.220672] usbcore: registered new interface driver cdc_ether
[ 2.227630] usbcore: registered new interface driver net1080
[ 2.234375] usbcore: registered new interface driver cdc_subset
[ 2.241363] usbcore: registered new interface driver zaurus
[ 2.247283] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.254547] ehci-omap.0 supply hsusb0 not found, using dummy regulator
[ 2.261596] ehci-omap.0 supply hsusb1 not found, using dummy regulator
[ 4.283752] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 4.292144] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numbe
r 1
[ 4.300537] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 4.315032] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 4.322448] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 4.329620] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1
[ 4.337188] usb usb1: Product: OMAP-EHCI Host Controller
[ 4.342773] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
[ 4.348449] usb usb1: SerialNumber: ehci-omap.0
[ 4.359802] hub 1-0:1.0: USB hub found
[ 4.364074] hub 1-0:1.0: 3 ports detected
[ 4.401855] Initializing USB Mass Storage driver...
[ 4.407958] usbcore: registered new interface driver usb-storage
[ 4.414337] USB Mass Storage support registered.
[ 4.420104] usbcore: registered new interface driver usbtest
[ 4.429656] mice: PS/2 mouse device common for all mice
[ 4.438629] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 4.454986] omap_device: omap_i2c.1: new worst case activate latency 0: 91552
[ 4.464874] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c
-1/1-0049/twl4030_pwrbutton/input/input1
[ 4.482452] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 4.489410] twl_rtc twl_rtc: Power up reset detected.
[ 4.495605] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 4.502288] i2c /dev entries driver
[ 4.513275] Linux media interface: v0.10
[ 4.518341] Linux video capture interface: v2.00
[ 4.525268] omap3isp supply VDD_CSIPHY1 not found, using dummy regulator
[ 4.532470] omap3isp supply VDD_CSIPHY2 not found, using dummy regulator
[ 4.540069] omap3isp omap3isp: Revision 15.0 found
[ 4.545471] omap-iommu omap-iommu.0: isp: version 1.1
[ 4.623504] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x2280
[ 4.638885] isp_register_subdev_group: Unable to register subdev mt9v113
[ 4.647796] usbcore: registered new interface driver uvcvideo
[ 4.653839] USB Video Class driver (v1.0.0)
[ 4.658721] omap_device: omap_wdt.-1: new worst case activate latency 0: 3051
7
[ 4.668518] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 4.674926] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30
517
[ 4.684204] twl4030_wdt twl4030_wdt: Failed to register misc device
[ 4.690856] twl4030_wdt: probe of twl4030_wdt failed with error -16
[ 4.716888] usbcore: registered new interface driver usbhid
[ 4.722778] usbhid: USB HID core driver
[ 4.730834] usbcore: registered new interface driver snd-usb-audio
[ 4.740234] ALSA device list:
[ 4.743316] No soundcards found.
[ 4.746948] oprofile: hardware counters not available
[ 4.752258] oprofile: using timer interrupt.
[ 4.757293] TCP cubic registered
[ 4.760742] Initializing XFRM netlink socket
[ 4.765411] NET: Registered protocol family 17
[ 4.770263] NET: Registered protocol family 15
[ 4.775543] Registering the dns_resolver key type
[ 4.781250] VFP support v0.3: implementor 41 architecture 3 part 30 variant c
rev 3
[ 4.790924] ThumbEE CPU extension supported.
[ 4.814788] Power Management for TI OMAP3.
[ 4.819915] sr_init: No PMIC hook to init smartreflex
[ 4.825744] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver init
ialized
[ 4.834838] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver init
ialized
[ 4.844482] SmartReflex Class3 initialized
[ 4.903625] clock: disabling unused clocks to save power
[ 4.917694] fbcvt: 1024x768@60: CVT Name - .786M3-R
[ 4.942565] omap_device: omap_i2c.1: new worst case deactivate latency 0: 610
35
[ 4.950286] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 4.960327] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC
(946684800)
[ 4.969238] omap_vout omap_vout: Buffer Size = 3686400
[ 4.979156] omap_vout omap_vout: : registered and initialized video device 15
[ 4.986663] omap_vout omap_vout: Buffer Size = 3686400
[ 4.994384] omap_vout omap_vout: : registered and initialized video device 16
[ 5.007049] Waiting for root device /dev/mmcblk0p2...
[ 5.330718] mmc0: new high speed SDHC card at address b368
[ 5.339294] mmcblk0: mmc0:b368 NCard 7.46 GiB (ro)
[ 5.352783] mmcblk0: p1 p2 p3
[ 5.449279] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
[ 5.456726] Please append a correct "root=" boot option; here are the availab
le partitions:
[ 5.465576] 1f00 512 mtdblock0 (driver?)
[ 5.470886] 1f01 1920 mtdblock1 (driver?)
[ 5.476226] 1f02 128 mtdblock2 (driver?)
[ 5.481567] 1f03 4096 mtdblock3 (driver?)
[ 5.486877] 1f04 517632 mtdblock4 (driver?)
[ 5.492187] b300 7829504 mmcblk0 driver: mmcblk
[ 5.497772] b301 72261 mmcblk0p1 00000000-0000-0000-0000-00000000
0mmcblk0p1
[ 5.506164] b302 923737 mmcblk0p2 00000000-0000-0000-0000-00000000
0mmcblk0p2
[ 5.514587] b303 6811560 mmcblk0p3 00000000-0000-0000-0000-00000000
0mmcblk0p3
[ 5.522979] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(179,2)
[ 5.531860] [<c004daf0>] (unwind_backtrace+0x0/0xec) from [<c04379c0>] (panic
+0x4c/0x184)
[ 5.540710] [<c04379c0>] (panic+0x4c/0x184) from [<c00091f0>] (mount_block_ro
ot+0x1d4/0x21c)
[ 5.549560] [<c00091f0>] (mount_block_root+0x1d4/0x21c) from [<c00092dc>] (mo
unt_root+0xa4/0xc4)
[ 5.558776] [<c00092dc>] (mount_root+0xa4/0xc4) from [<c0009460>] (prepare_na
mespace+0x164/0x1c8)
[ 5.568084] [<c0009460>] (prepare_namespace+0x164/0x1c8) from [<c0008710>] (k
ernel_init+0x10c/0x150)
[ 5.577636] [<c0008710>] (kernel_init+0x10c/0x150) from [<c0048d10>] (kernel_
thread_exit+0x0/0x8)