Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3359, TPS65910
Hi,
I have a problem for boot on my NAND.
Below you have the boot log. With my kernel version (4.19.59) and my flash NAND (nand: 1024 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224 ) the driver GPMC it is ok ?
When I start with my sdcard, the command cat /proc/mtd is empty but with u-boot all is ok (read/write/erase on my partitions).
On my NAND I have all, MLO/u-boot/.dts/zImage/image.ubi on good partition. On my device tree i have de NAND configuration pins with the same partition of u-boot.
Best regards.
u-boot :
=> mtdparts
device nand0 <nand.0>, # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00040000 0x00000000 0
1: NAND.SPL.backup1 0x00040000 0x00040000 0
2: NAND.SPL.backup2 0x00040000 0x00080000 0
3: NAND.SPL.backup3 0x00040000 0x000c0000 0
4: NAND.u-boot-spl-os 0x00040000 0x00100000 0
5: NAND.u-boot 0x00100000 0x00140000 0
6: NAND.u-boot-env 0x00040000 0x00240000 0
7: NAND.u-boot-env.backup10x00040000 0x00280000 0
8: NAND.kernel 0x00800000 0x002c0000 0
9: NAND.file-system 0x3f540000 0x00ac0000 0
active partition: nand0,0 - (NAND.SPL) 0x00040000 @ 0x00000000
defaults:
mtdids : nand0=nand.0
mtdparts: mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2),256k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)
=> run nandboot
Booting from nand ...
NAND read: device 0 offset 0x100000, size 0x40000
262144 bytes read: OK
NAND read: device 0 offset 0x2c0000, size 0x800000
8388608 bytes read: OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff3000, end 8ffffa68 ... OK
Starting kernel ...
0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (mboukili@MSFE-0089-L) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT RT Thu Dec 5 11:42:34 CET 2019
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM3359 ICE-V2 - dual PRUETH
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0xa4/0x444 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO3,115200n8 mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2),256k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system) root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
[ 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: 456948K/524288K available (8192K kernel code, 322K rwdata, 2668K rodata, 1024K init, 259K bss, 18188K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 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 : 0x(ptrval) - 0x(ptrval) (9184 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 323 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 260 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] No expedited grace period (rcu_normal_after_boot).
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000040] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000049] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000294] timer_probe: no matching timers found
[ 0.000536] Console: colour dummy device 80x30
[ 0.000742] WARNING: Your 'console=ttyO3' has been replaced by 'ttyS3'
[ 0.000746] This ensures that you still see kernel messages. Please
[ 0.000748] update your kernel commandline.
[ 0.000791] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.058695] pid_max: default: 32768 minimum: 301
[ 0.058977] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.058991] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060202] CPU: Testing write buffer coherency: ok
[ 0.060276] CPU0: Spectre v2: using BPIALL workaround
[ 0.061583] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.061974] rcu: Hierarchical SRCU implementation.
[ 0.062936] EFI services will not be available.
[ 0.064935] devtmpfs: initialized
[ 0.079975] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.080557] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.080589] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.085083] pinctrl core: initialized pinctrl subsystem
[ 0.086133] DMI not present or invalid.
[ 0.086801] NET: Registered protocol family 16
[ 0.090975] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.116893] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.180406] OMAP GPIO hardware version 0.1
[ 0.184496] GPIO line 100 (PR1_MII_CTRL) hogged as output/high
[ 0.184541] GPIO line 106 (MUX_MII_CTL1) hogged as output/low
[ 0.184576] GPIO line 116 (FORCE_RST_PHY_FOR_NAND) hogged as output/low
[ 0.195492] No ATAGs?
[ 0.195515] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.219084] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.224213] SCSI subsystem initialized
[ 0.224882] media: Linux media interface: v0.10
[ 0.224952] videodev: Linux video capture interface: v2.00
[ 0.225110] pps_core: LinuxPPS API ver. 1 registered
[ 0.225122] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.225163] PTP clock support registered
[ 0.225217] EDAC MC: Ver: 3.0.0
[ 0.226789] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.227666] Advanced Linux Sound Architecture Driver Initialized.
[ 0.229756] clocksource: Switched to clocksource timer1
[ 0.243562] NET: Registered protocol family 2
[ 0.244903] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 7168 bytes)
[ 0.244957] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.245045] TCP bind hash table entries: 4096 (order: 4, 98304 bytes)
[ 0.245302] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.245458] UDP hash table entries: 256 (order: 2, 16384 bytes)
[ 0.245519] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
[ 0.245798] NET: Registered protocol family 1
[ 0.246646] RPC: Registered named UNIX socket transport module.
[ 0.246665] RPC: Registered udp transport module.
[ 0.246675] RPC: Registered tcp transport module.
[ 0.246685] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.247996] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.250240] Initialise system trusted keyrings
[ 0.250578] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.259461] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.260966] NFS: Registering the id_resolver key type
[ 0.261024] Key type id_resolver registered
[ 0.261036] Key type id_legacy registered
[ 0.261101] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.264555] Key type asymmetric registered
[ 0.264580] Asymmetric key parser 'x509' registered
[ 0.264679] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.264696] io scheduler noop registered
[ 0.264708] io scheduler deadline registered
[ 0.265090] io scheduler cfq registered (default)
[ 0.265107] io scheduler mq-deadline registered
[ 0.265120] io scheduler kyber registered
[ 0.267675] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.352537] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.358183] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 30, base_baud = 3000000) is a 8250
[ 0.359995] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250
[ 1.032775] console [ttyS3] enabled
[ 1.038005] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 32, base_baud = 3000000) is a 8250
[ 1.049991] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 1.060061] random: fast init done
[ 1.063830] random: crng init done
[ 1.084428] brd: module loaded
[ 1.098631] loop: module loaded
[ 1.106732] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[ 1.114368] libphy: Fixed MDIO Bus: probed
[ 1.122308] i2c /dev entries driver
[ 1.127604] sdhci: Secure Digital Host Controller Interface driver
[ 1.133826] sdhci: Copyright(c) Pierre Ossman
[ 1.140552] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.155222] NET: Registered protocol family 10
[ 1.161766] Segment Routing with IPv6
[ 1.165576] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.172691] NET: Registered protocol family 17
[ 1.177551] Key type dns_resolver registered
[ 1.182302] omap_voltage_late_init: Voltage driver support not added
[ 1.190195] Loading compiled-in X.509 certificates
[ 1.211728] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.216928] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.225686] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xd3
[ 1.232087] nand: Micron MT29F8G08ABACAWP
[ 1.236122] nand: 1024 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
[ 1.244016] omap2-nand 8000000.nand: ELM device not found
[ 1.249446] omap2-nand 8000000.nand: ELM not available
[ 1.254690] omap2-nand: probe of 8000000.nand failed with error -22
[ 1.290160] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.298528] vrtc: supplied by vbat
[ 1.305856] vio: supplied by vbat
[ 1.310883] vdd1: supplied by vbat
[ 1.316287] vdd2: supplied by vbat
[ 1.323410] vdig1: supplied by vbat
[ 1.328454] vdig2: supplied by vbat
[ 1.333522] vpll: supplied by vbat
[ 1.338462] vdac: supplied by vbat
[ 1.343447] vaux1: supplied by vbat
[ 1.348487] vaux2: supplied by vbat
[ 1.353567] vaux33: supplied by vbat
[ 1.358681] vmmc: supplied by vbat
[ 1.363700] vbb: supplied by vbat
[ 1.369248] pca953x 0-0041: 0-0041 supply vcc not found, using dummy regulator
[ 1.376638] pca953x 0-0041: Linked as a consumer to regulator.0
[ 1.382671] pca953x 0-0041: failed reading register
[ 1.387688] pca953x 0-0041: Dropping the link to regulator.0
[ 1.393449] pca953x: probe of 0-0041 failed with error -121
[ 1.399264] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.406967] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.15
[ 1.440232] UBI error: cannot open mtd NAND.file-system, error -2
[ 1.446704] hctosys: unable to open rtc device (rtc0)
[ 1.452973] ALSA device list:
[ 1.455976] No soundcards found.
[ 1.460995] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[ 1.469054] Please append a correct "root=" boot option; here are the available partitions:
[ 1.477476] 0100 65536 ram0
[ 1.477484] (driver?)
[ 1.481692] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.483513] mmc0: new high speed SDHC card at address 59b4
[ 1.490694] mmcblk0: mmc0:59b4 USD00 29.5 GiB
[ 1.492956] mmcblk0: p1 p2
[ 1.509227] 0101 65536 ram1
[ 1.509236] (driver?)
[ 1.515379] 0102 65536 ram2
[ 1.515386] (driver?)
[ 1.521524] 0103 65536 ram3
[ 1.521530] (driver?)
[ 1.527665] 0104 65536 ram4
[ 1.527671] (driver?)
[ 1.533810] 0105 65536 ram5
[ 1.533815] (driver?)
[ 1.539953] 0106 65536 ram6
[ 1.539958] (driver?)
[ 1.546094] 0107 65536 ram7
[ 1.546099] (driver?)
[ 1.552239] 0108 65536 ram8
[ 1.552245] (driver?)
[ 1.558378] 0109 65536 ram9
[ 1.558383] (driver?)
[ 1.564521] 010a 65536 ram10
[ 1.564527] (driver?)
[ 1.570751] 010b 65536 ram11
[ 1.570757] (driver?)
[ 1.576978] 010c 65536 ram12
[ 1.576983] (driver?)
[ 1.583209] 010d 65536 ram13
[ 1.583214] (driver?)
[ 1.589435] 010e 65536 ram14
[ 1.589440] (driver?)
[ 1.595665] 010f 65536 ram15
[ 1.595671] (driver?)
[ 1.601911] b300 30976000 mmcblk0
[ 1.601918] driver: mmcblk
[ 1.608751] b301 320512 mmcblk0p1 53cad4a9-01
[ 1.608757]
[ 1.615593] b302 30638080 mmcblk0p2 53cad4a9-02
[ 1.615598]
[ 1.622437] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)