Project

General

Profile

RE: Building an SD Card » nandboot.txt

Same kernel as BadBoot but booting from NAND - Tom Tatakis, 04/07/2016 09:02 AM

 

U-Boot SPL 2013.10 (Apr 27 2015 - 11:42:09)
MitySOM335x profile 1 - Model No: 3354-HX-X38-RI Serial No: 14008001
Configuring for 512 MB DDR3 @ 400MHz
enable_gpmc_cs_config: base = 8000000, size = 0, config1 = 800
Alstom NVSP2 -- NAND Page size = 4096k booting from dev 5
Using 4k bch16 layout
ECC Mode = 2 lo = 208/0
nand_spl_load_image: loading 4096 bytes from 100000 to 80800000
nand_spl_load_image: loading 455772 bytes from 100000 to 807fffc0


U-Boot 2013.10 (Apr 27 2015 - 11:42:09)

AM335X-GP rev 2
I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
enable_gpmc_cs_config: base = 8000000, size = 0, config1 = 800
NAND: Using 4k bch16 layout
ECC Mode = 2 lo = 208/0
512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
gpio input SPARE0 value = 0
Net: cpsw:1 is connected to cpsw. Reconnecting to cpsw
cpsw
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Booting from nand ...
nandecc disabled

NAND read: device 0 offset 0x340000, size 0x500000
Skipping bad block 0x00780000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0-svn333
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3825616 Bytes = 3.6 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0-svn333 (mitydsp@mitydsp-dev) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #45 PREEMPT Tue Apr 5 16:05:51 EDT 2016
[ 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: mitysom335x
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,4096 noinitrd rootfstype=ubifs rootwait=1 ip=none
[ 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: 510888k/510888k available, 13400k 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0780000 (7648 kB)
[ 0.000000] .init : 0xc0780000 - 0xc07bb000 ( 236 kB)
[ 0.000000] .data : 0xc07bc000 - 0xc0854700 ( 610 kB)
[ 0.000000] .bss : 0xc0854724 - 0xc08a6418 ( 328 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 24000000 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.000122] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[ 0.039062] pid_max: default: 32768 minimum: 301
[ 0.039215] Security Framework initialized
[ 0.039337] Mount-cache hash table entries: 512
[ 0.039733] CPU: Testing write buffer coherency: ok
[ 0.040679] devtmpfs: initialized
[ 0.060943] omap_hwmod: pruss: failed to hardreset
[ 0.062469] print_constraints: dummy:
[ 0.062988] NET: Registered protocol family 16
[ 0.065704] OMAP GPIO hardware version 0.1
[ 0.069396] mityarm335x_init...
[ 0.069732] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.070556] Configuring I2C Bus 1
[ 0.070617] omap_i2c.2: alias fck already exists
[ 0.070892] Configuring I2C Bus 2
[ 0.070953] omap_i2c.3: alias fck already exists
[ 0.072052] Registering mcspi 1 [2]
[ 0.072082] omap2_mcspi.1: alias fck already exists
[ 0.072357] Registering mcspi 2 [2]
[ 0.072387] omap2_mcspi.2: alias fck already exists
[ 0.072692] edma.0: alias fck already exists
[ 0.072723] edma.0: alias fck already exists
[ 0.072753] edma.0: alias fck already exists
[ 0.078002] omap_i2c.1: alias fck already exists
[ 0.111083] bio: create slab <bio-0> at 0
[ 0.114105] SCSI subsystem initialized
[ 0.116210] usbcore: registered new interface driver usbfs
[ 0.116607] usbcore: registered new interface driver hub
[ 0.116882] usbcore: registered new device driver usb
[ 0.118377] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.119628] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 0.120727] tps65910 3-002d: JTAGREVNUM 0x1
[ 0.125457] print_constraints: VRTC:
[ 0.126983] print_constraints: VIO: at 1500 mV
[ 0.129486] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.131896] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.132965] print_constraints: VDD3: 5000 mV
[ 0.134460] print_constraints: VDIG1: at 1800 mV
[ 0.135955] print_constraints: VDIG2: at 1800 mV
[ 0.137420] print_constraints: VPLL: at 1800 mV
[ 0.138916] print_constraints: VDAC: at 1800 mV
[ 0.140502] print_constraints: VAUX1: at 1800 mV
[ 0.141998] print_constraints: VAUX2: at 3300 mV
[ 0.143493] print_constraints: VAUX33: at 3300 mV
[ 0.144989] print_constraints: VMMC: at 3300 mV
[ 0.145599] tps65910 3-002d: No interrupt support, no core IRQ
[ 0.159118] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.159790] pps_core: LinuxPPS API ver. 1 registered
[ 0.159790] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.159973] PTP clock support registered
[ 0.161071] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.161956] Switching to clocksource gp timer
[ 0.186859] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.187530] NET: Registered protocol family 2
[ 0.187805] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.188323] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.188598] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.188751] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.188781] TCP reno registered
[ 0.188781] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.188812] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.189086] NET: Registered protocol family 1
[ 0.189666] RPC: Registered named UNIX socket transport module.
[ 0.189697] RPC: Registered udp transport module.
[ 0.189697] RPC: Registered tcp transport module.
[ 0.189697] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190002] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.193847] audit: initializing netlink socket (disabled)
[ 0.193908] type=2000 audit(0.190:1): initialized
[ 0.209899] VFS: Disk quotas dquot_6.5.2
[ 0.209991] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.212493] msgmni has been set to 997
[ 0.214080] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.214111] io scheduler noop registered
[ 0.214111] io scheduler deadline registered
[ 0.214324] io scheduler cfq registered (default)
[ 0.216491] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.219146] zilog_escc_init returning with 0
[ 0.239318] brd: module loaded
[ 0.246398] loop: module loaded
[ 0.246643] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.246643] i2c-core: driver [tsl2550] using legacy resume method
[ 0.246734] at24 2-0050: 256 byte 24c02 EEPROM, read-only, 0 bytes/write
[ 0.252593] MitySOM-335x: Part Number = 3354-HX-X38-RI
[ 0.252624] No SPI NOR Flash found.
[ 0.252624] Configuring 512MB NAND device
[ 0.252838] mityarm335x_nand_init: calling omap_nand_init- 4k
[ 0.252838] mityarm335x_nand_init: calling omap_init_gpmc
[ 0.253509] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.253509] gpmc_probe: calling gpmc_nand_init
[ 0.253509] gpmc_probe: nr= 8, cs= 0, name= SPL
[ 0.253540] Registering NAND on CS0
[ 0.253540] Enabling CS0, base=0x100000, size=0xf00000, config7=0xf40
[ 0.253570] Registering CS0, resource start=0x100000, end=0xffffff
[ 0.253631] gpmc_nand_init: registering paltform device gpmc_nand_device= omap2-nand
[ 0.257781] omap2-nand driver initializing
[ 0.257873] omap_nand_probe: pdev->name= omap2-nand
[ 0.258117] ONFI flash detected
[ 0.258270] ONFI param page 0 valid
[ 0.258270] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABAEAWP)
[ 0.258300] nand_scan_tail: ENTERED (0xdf172010)
[ 0.258300] omap_nand_probe: calling mtd_device_parse_register
[ 0.258331] add_mtd_partitions: Creating 8 MTD partitions on "omap2-nand.0" (mtd=0xdf172010):
[ 0.258361] allocate_partition: 0x000000000000-0x000000040000 : "SPL"
[ 0.258453] add_mtd_device: mtd= 0xdf218800, assigning index= 0
[ 0.260345] allocate_partition: 0x000000040000-0x000000080000 : "SPL.backup1"
[ 0.260406] add_mtd_device: mtd= 0xdf23bc00, assigning index= 1
[ 0.262420] allocate_partition: 0x000000080000-0x0000000c0000 : "SPL.backup2"
[ 0.262481] add_mtd_device: mtd= 0xdf23b000, assigning index= 2
[ 0.264190] allocate_partition: 0x0000000c0000-0x000000100000 : "SPL.backup3"
[ 0.264251] add_mtd_device: mtd= 0xdf1e9400, assigning index= 3
[ 0.265899] allocate_partition: 0x000000100000-0x000000300000 : "U-Boot"
[ 0.266357] add_mtd_device: mtd= 0xdf1ee800, assigning index= 4
[ 0.268035] allocate_partition: 0x000000300000-0x000000340000 : "U-Boot Env"
[ 0.268096] add_mtd_device: mtd= 0xdf249c00, assigning index= 5
[ 0.269744] allocate_partition: 0x000000340000-0x000000840000 : "Kernel"
[ 0.270812] add_mtd_device: mtd= 0xdf249000, assigning index= 6
[ 0.272705] allocate_partition: 0x000000840000-0x000020000000 : "File System"
[ 0.379089] add_mtd_device: mtd= 0xdf24f400, assigning index= 7
[ 0.380950] OneNAND driver initializing
[ 0.383789] CAN device driver interface
[ 0.383789] CAN bus driver for Bosch D_CAN controller 1.0
[ 0.432159] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 0.432189] davinci_mdio davinci_mdio.0: detected phy mask fffffff9
[ 0.432678] nvsp2_phy_fixup phy_id = 0x221622, addr = 1
[ 0.433410] nvsp2_phy_fixup phy_id = 0x221622, addr = 2
[ 0.433685] davinci_mdio.0: probed
[ 0.433715] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver Micrel KSZ9031 Gigabit PHY
[ 0.433715] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver Micrel KSZ9031 Gigabit PHY
[ 0.434204] usbcore: registered new interface driver cdc_ether
[ 0.434417] usbcore: registered new interface driver cdc_subset
[ 0.434448] Initializing USB Mass Storage driver...
[ 0.434692] usbcore: registered new interface driver usb-storage
[ 0.434692] USB Mass Storage support registered.
[ 0.435424] mousedev: PS/2 mouse device common for all mice
[ 0.438446] tps65910-rtc tps65910-rtc: Wake up is not possible as irq = 0
[ 0.444519] tps65910-rtc tps65910-rtc: rtc core: registered tps65910-rtc as rtc0
[ 0.444763] i2c /dev entries driver
[ 0.445953] Linux media interface: v0.10
[ 0.446166] Linux video capture interface: v2.00
[ 0.450683] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 0.455932] cpuidle: using governor ladder
[ 0.456787] cpuidle: using governor menu
[ 0.458740] usbcore: registered new interface driver usbhid
[ 0.458770] usbhid: USB HID core driver
[ 0.460052] usbcore: registered new interface driver snd-usb-audio
[ 0.487792] ALSA device list:
[ 0.487823] No soundcards found.
[ 0.487823] oprofile: hardware counters not available
[ 0.487854] oprofile: using timer interrupt.
[ 0.487915] nf_conntrack version 0.5.0 (7982 buckets, 31928 max)
[ 0.488769] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.488922] TCP cubic registered
[ 0.488952] NET: Registered protocol family 17
[ 0.488983] can: controller area network core (rev 20090105 abi 8)
[ 0.489196] NET: Registered protocol family 29
[ 0.489227] can: raw protocol (rev 20090105)
[ 0.489227] can: broadcast manager protocol (rev 20090105 t)
[ 0.489318] 8021q: 802.1Q VLAN Support v1.8
[ 0.489379] lib80211: common routines for IEEE802.11 drivers
[ 0.489440] Registering the dns_resolver key type
[ 0.489562] Registering FPGA on CS1
[ 0.489562] Enabling CS1, base=0x1000000, size=0x1000000, config7=0xf41
[ 0.489593] Registering CS1, resource start=0x1000000, end=0x1ffffff
[ 0.490203] baseboard_init_late [Alstom NVSP2]...
[ 0.490447] omap_hsmmc.0: alias fck already exists
[ 0.491699] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.600036] console [ttyO0] enabled
[ 1.605407] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.614196] baseboard_setup_spi1_devices: calling spi_register_board_info()
[ 1.622161] m25p80 spi2.0: m25p64-nonjedec (8192 Kbytes)
[ 1.627838] add_mtd_partitions: Creating 1 MTD partitions on "spi_flash" (mtd=0xdf2af410):
[ 1.636505] allocate_partition: 0x000000000000-0x000000800000 : "NOR User Defined"
[ 1.644409] add_mtd_device: mtd= 0xdf2af000, assigning index= 8
[ 1.857543] zilog_escc: ttyZ0 at MMIO 0x1008004 (irq = 256) is a zs (ESCC)
[ 1.865295] zilog_escc: ttyZ1 at MMIO 0x1008000 (irq = 256) is a zs (ESCC)
[ 1.876678] d_can.1: alias fck already exists
[ 1.882995] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.892089] tiadc tiadc: attached adc driver
[ 1.896820] Registering ENET on CS2
[ 1.900482] Enabling CS2, base=0x2000000, size=0x1000000, config7=0xf42
[ 1.907440] Registering CS2, resource start=0x2000000, end=0x2ffffff
[ 1.914581] ks8851_mll ks8851_mll: (unregistered net_device): message enable is 0
[ 1.922424] ks8851_mll ks8851_mll: (unregistered net_device): the selftest passes
[ 1.942169] ks8851_mll ks8851_mll: eth0: Using random mac address
[ 1.948608] ks8851_mll ks8851_mll: eth0: Mac address is: 52:55:3b:30:5c:5e
[ 1.955810] ks8851_mll ks8851_mll: eth0: Found chip, family: 0x88, id: 0x7, rev: 0x1
[ 1.963897] ks8851_mll ks8851_mll: eth0: MARM register value: 0x3b30
[ 1.970550] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.978576] ThumbEE CPU extension supported.
[ 1.983123] mux: Failed to setup hwmod io irq -22
[ 1.990020] Power Management for AM33XX family
[ 1.994689] pm: Err (-22) setting core voltage setting
[ 2.000244] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 2.006958] Copied the M3 firmware to UMEM
[ 2.011291] Unable to read CM3 firmware version
[ 2.030151] ubi_attach_mtd_dev: mtd= 0xdf24f400
[ 2.035064] UBI: attaching mtd7 to ubi0
[ 2.039215] ubi_attach: mtd= 0xdf24f400, index= 7, name= File System
[ 6.184631] UBI: scanning is finished
[ 6.188690] UBI: scan_all: returning success
[ 6.193176] UBI: ubi_attach: reading volume table: bad_peb= 1, good_peb= 2014,corr_peb= 0,max_ec= 1, mean_ec= 0, max seq= 25
[ 6.222900] UBI: attached mtd7 (name "File System", size 503 MiB) to ubi0
[ 6.229980] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 6.237121] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 6.244140] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 6.251312] UBI: good PEBs: 2014, bad PEBs: 1, corrupted PEBs: 0
[ 6.257598] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.265045] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 197770969
[ 6.274414] UBI: available PEBs: 0, total reserved PEBs: 2014, PEBs reserved for bad PEB handling: 39
[ 6.284057] UBI: background thread "ubi_bgt0d" started, PID 772
[ 6.290466] Detected MACID=90:59:af:91:32:22
[ 6.296325] cpsw: Detected MACID = 90:59:af:91:32:24
[ 6.306243] tps65910-rtc tps65910-rtc: setting system clock to 2014-12-19 01:45:26 UTC (1418953526)
[ 6.322692] UBIFS: background thread "ubifs_bgt0_0" started, PID 778
[ 6.451721] UBIFS: recovery needed
[ 6.756805] UBIFS: recovery completed
[ 6.760894] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 6.767211] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 6.776763] UBIFS: FS size: 497999872 bytes (474 MiB, 1961 LEBs), journal size 9404416 bytes (8 MiB, 38 LEBs)
[ 6.787109] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 6.792388] UBIFS: media format: w4/r0 (latest is w4/r0), UUID BF0C5FDB-AC81-4849-B9F7-58C8D1BF4B81, small LPT model
[ 6.806610] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 6.813446] Freeing init memory: 236K
[ 8.904418] udevd[806]: starting version 182



Arago 2014.05 mityarm335x /dev/ttyO0

mityarm335x login:
(3-3/3)