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.

Linux/PROCESSOR-SDK-OMAPL138: omap-l138 nand ubifs

Part Number: PROCESSOR-SDK-OMAPL138
Other Parts Discussed in Thread: OMAP-L138, AM5728

Tool/software: Linux

 

softwareprocessor-sdk-04.01.00.06; 

Hardwareomap-l138 ;  custom board;

Hi,

I want to use nand ubifs  as rootfs, and the MTD driver was built in linux kernel, but can't mount the ubifs when booting,  and MTD was not loaded at that time.

There's  an error printed by kernal when booting:

    UBI error: cannot open mtd rootfs, error -2console [netcon0] enabled

uboot cmdline:

    nandboot=setenv bootargs console=ttyS1,115200n8 rootwait=1 rw ubi.mtd=1,2048 rootfstype=ubifs root=ubi0:rootfs

How to load MTD before the ubifs is loaded? 

Other Info:

    dmesg(with emmc  boot, you can see mtd was loaded at filesystem-stage after kernel-stage):  

4401.log.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
OF: fdt:Machine model: DA850/AM1808/OMAP-L138 EVM
Reserved memory: created CMA memory pool at 0xc3000000, size 16 MiB
OF: reserved mem: initialized node dsp_cma@c3000000, compatible id shared-dma-pool
cma: Reserved 16 MiB at 0xc6c00000
Memory policy: Data cache writethrough
DaVinci da850/omap-l138/am18x variant 0x1
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c06dbc50, node_mem_map c7ec9000
DMA zone: 288 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32768 pages, LIFO batch:7
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
Kernel command line: console=ttyS1,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 89688K/131072K available (4915K kernel code, 317K rwdata, 1524K rodata, 232K init, 165K bss, 8616K reserved, 32768K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc04d5060 (4917 kB)
.init : 0xc0654000 - 0xc068e000 ( 232 kB)
.data : 0xc068e000 - 0xc06dd570 ( 318 kB)
.bss : 0xc06dd570 - 0xc0706d68 ( 166 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
NR_IRQS:245
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
Console: colour dummy device 80x30
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc0008400 - 0xc0008458
devtmpfs: initialized
VFP support v0.3: not present
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
gpio gpiochip0: (Davinci): added GPIO chardev (254:0)
gpiochip_setup_dev: registered GPIOs 0 to 143 on device: gpiochip0 (Davinci)
mux: initialized RTC_ALARM
mux: Setting register RTC_ALARM
mux: PINMUX0 (0x00000000) = 0x00480008 -> 0x20480008
No ATAGs?
edma 1c00000.edma: memcpy is disabled
edma 1c00000.edma: TI EDMA DMA engine driver
edma 1e30000.edma: memcpy is disabled
edma 1e30000.edma: TI EDMA DMA engine driver
of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator0[0]'
i2c_davinci i2c_davinci.1: could not find pctldev for node /soc@1c00000/pinmux@14120/pinmux_i2c0_pins, deferring probe
clocksource: Switched to clocksource timer0_1
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thank you,

Andi