Other Parts Discussed in Thread: OMAPL138, AM1808, OMAP-L138, DA8XX
Tool/software: Linux
My sdk is 'PROCESSOR-SDK-LINUX-OMAPL138 04_00_00_04'.
1) problem 1
I made jffs2 to mtd3.
But I can't mout it, Because My Linux didn't have /dev/mtdblock3.
Why?
-------------------------------------------------------------------------
root@omapl138-lcdk:/dev# mount -t jffs2 /dev/mtdblock3 /mnt
jffs2: version 2.2. (NAND) 짤 2001-2006 Red Hat, Inc.
mount: special device /dev/mtdblock3 does not exist
root@omapl138-lcdk:/dev# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00020000 "u-boot env"
mtd1: 00080000 00020000 "u-boot"
mtd2: 00300000 00020000 "kernel"
mtd3: 1fc60000 00020000 "filesystem"
root@omapl138-lcdk:/dev# ls /dev/mtd*
/dev/mtd0 /dev/mtd0ro /dev/mtd1 /dev/mtd1ro /dev/mtd2 /dev/mtd2ro /dev/mtd3 /dev/mtd3ro
----------------------------------------------------------------------------
Kernel option of ubifs is ok.
1) Device Drivers --->
Memory Technology Device (MTD) support --->
Enable UBI - Unsorted block images --->
2) File systems --->
Miscellaneous filesystems --->
UBIFS file system support
3) Device Drivers ->
Generic Driver Options ->
Maintain devtmpfs
2) Problem 2
Kernel Loading have Problem 'Cannot open root device "mtdblock3" or unknown-block(0,0): error -19'
bootargs of u-boot is 'console=ttyS2,115200n8 rootwait=1 root=/dev/mtdblock3 rw rootfstype=jffs2'.
I didn't change kernel config option of mtd.
Why?
Does kernel of omapl138 ('PROCESSOR-SDK-LINUX-OMAPL138 04_00_00_04' ) have bug of mtd?
My system must use MTD, because it have only nand flash.
Please... Thanks.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
U-Boot 2017.01-00319-g9e3097f-dirty (Jul 21 2017 - 09:56:54 +0900)
I2C: ready
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 512 MiB
MMC: davinci: 0
In: serial
Out: serial
Err: serial
Invalid MAC address read.
Net: DaVinci-EMAC
Warning: DaVinci-EMAC (eth0) using random MAC address - 8a:1b:e0:03:f9:59
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0xa0000, size 0x300000
3145728 bytes read: OK
12948 bytes read in 40 ms (315.4 KiB/s)
## Flattened Device Tree blob at c0600000
Booting using the fdt blob at 0xc0600000
Loading Device Tree to c7e1e000, end c7e24293 ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.9.28-geed43d1050 (omapl138@ubuntu) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #3 PREEMPT Mon Aug 14 17:48:44 JST 2017
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
OF: fdt:Machine model: DA850/AM1808/OMAP-L138 LCDK
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
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
Kernel command line: console=ttyS2,115200n8 rootwait=1 root=/dev/mtdblock3 rw rootfstype=jffs2
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: 90172K/131072K available (4529K kernel code, 308K rwdata, 1448K rodata, 224K init, 162K bss, 8132K 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 - 0xc0474b38 (4531 kB)
.init : 0xc05e0000 - 0xc0618000 ( 224 kB)
.data : 0xc0618000 - 0xc0665110 ( 309 kB)
.bss : 0xc0665110 - 0xc068dc08 ( 163 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... 227.32 BogoMIPS (lpj=1136640)
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
mux: initialized RTC_ALARM
mux: Setting register RTC_ALARM
mux: PINMUX0 (0x00000000) = 0x44080000 -> 0x24080000
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
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)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=14 max_order=15 bucket_order=1
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered (default)
pinctrl-single 1c14120.pinmux: please update dts to use #pinctrl-cells = <2>
pinctrl-single 1c14120.pinmux: 160 pins at pa fec14120 size 80
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
console [ttyS2] disabled
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a TI DA8xx/66AK2x
console [ttyS2] enabled
brd: module loaded
libphy: Fixed MDIO Bus: probed
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask ffffff7f
libphy: davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[7]: device davinci_mdio.0:07, driver SMSC LAN8710/LAN8720
i2c /dev entries driver
davinci_mmc da830-mmc.0: Got CD GPIO
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
console [netcon0] enabled
netconsole: network logging started
davinci_emac davinci_emac.1: incompatible machine/device type for reading mac address
davinci_emac davinci_emac.1: using random MAC addr: 8e:61:56:c4:ef:db
input: gpio-keys as /devices/platform/gpio-keys/input/input0
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SS08G 7.40 GiB
mmcblk0: p1 p2
hctosys: unable to open rtc device (rtc0)
VFS: Cannot open root device "mtdblock3" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:
0100 32768 ram0 (driver?)
b300 7761920 mmcblk0 driver: mmcblk
b301 71680 mmcblk0p1 02782221-01
b302 7672832 mmcblk0p2 02782221-02
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
random: fast init done