I have some question about ACPI table. I want to control Intel Edison default GPIO on boot, so I make ACPI table to control it. But did not cause any changes. This is my ASL code:
Device (DEV)
{
Name (_HID, "PRP0001")
Name (_DDN, "GPIO LEDs device")
Name (_CRS, ResourceTemplate()
{
GpioIo (Shared, PullNone, 0x0000, 0x0000,
IoRestrictionOutputOnly, "\\_SB.PCI0.GPI0",
0x00, ResourceConsumer,,){12,13}
})
Name (_DSD, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () { "compatible", Package() { "gpio-leds" } },
},
ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
Package () {
Package () {"led-0", "LED0"},
Package () {"led-1", "LED1"},
}
})
/*
* For more information about these bindings see:
* Documentation/devicetree/bindings/leds/common.yaml,
* Documentation/devicetree/bindings/leds/leds-gpio.yaml and
* Documentation/firmware-guide/acpi/gpio-properties.rst.
*/
Name (LED0, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () {"label", "green"},
Package () {"default-state", "off"},
Package () {"gpios", Package () {^LEDS, 0, 0, 0}},
Package () {"retain-state-suspended", 1},
}
})
Name (LED1, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () {"label", "red"},
Package () {"default-state", "off"},
Package () {"gpios", Package () {^LEDS, 0, 1, 0}},
Package () {"retain-state-suspended", 1},
}
})
}
Look like my leds_test.aml is loaded.
This is my /sys/kernel/debug/gpio:
root#:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-191, parent: pci/0000:00:0c.0, 0000:00:0c.0:
gpio-47 ( |? ) out hi
gpio-71 ( |shutdown ) out hi
gpio-77 ( |sd_cd ) in hi IRQ
gpio-96 ( |ACPI:OpRegion ) out hi
gpio-110 ( |cs ) out hi
gpio-111 ( |cs ) out hi
gpio-112 ( |cs ) out lo
gpio-113 ( |cs ) out lo
gpio-184 ( |device-wakeup ) out lo
gpio-185 ( |host-wakeup ) in lo IRQ
root#:~# dmesg | grep ACPI
[ 0.002615] ACPI: Early table checksum verification disabled
[ 0.002631] ACPI: RSDP 0x00000000000E4500 000024 (v02 U-BOOT)
[ 0.002655] ACPI: XSDT 0x00000000000E45E0 00004C (v01 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002688] ACPI: FACP 0x00000000000E5310 0000F4 (v06 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002724] ACPI: DSDT 0x00000000000E4780 000A8A (v02 U-BOOT U-BOOTBL 00010000 INTL 20190215)
[ 0.002749] ACPI: APIC 0x00000000000E5410 000048 (v04 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002772] ACPI: MCFG 0x00000000000E5460 00003C (v01 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002794] ACPI: CSRT 0x00000000000E54A0 000058 (v00 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002817] ACPI: SPCR 0x00000000000E5500 000050 (v02 U-BOOT U-BOOTBL 20200909 INTL 00000000)
[ 0.002866] ACPI: Local APIC address 0xfee00000
[ 0.035260] ACPI: no legacy devices present
[ 0.035266] ACPI: probing for VGA not safe
[ 0.035281] ACPI: Local APIC address 0xfee00000
[ 0.035303] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.035315] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
[ 0.035338] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[ 0.035385] Using ACPI (MADT) for SMP configuration information
[ 0.035400] ACPI: SPCR: console: uart,mmio,0xff010180
[ 1.158446] ACPI: Core revision 20191018
[ 1.182930] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[ 1.182938] ACPI: bus type PCI registered
[ 1.215373] ACPI: Added _OSI(Module Device)
[ 1.215771] ACPI: Added _OSI(Processor Device)
[ 1.215778] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 1.215784] ACPI: Added _OSI(Processor Aggregator Device)
[ 1.215793] ACPI: Added _OSI(Linux-Dell-Video)
[ 1.215801] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 1.215808] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 1.220700] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 1.222647] ACPI: Interpreter enabled
[ 1.222705] ACPI: (supports S0)
[ 1.222740] ACPI: Using IOAPIC for interrupt routing
[ 1.222853] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 1.236360] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 1.266154] ACPI: bus type USB registered
[ 2.126336] pnp: PnP ACPI init
[ 2.126853] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
[ 2.127373] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 2.128692] pnp: PnP ACPI: found 2 devices
[ 3.028011] ACPI: Host-directed Dynamic ACPI Table Load:
[ 3.028045] ACPI: SSDT 0xFFFF8B1279103A80 0000A6 (v05 SPIDEV 00000001 INTL 20190215)
[ 3.059576] ACPI: Host-directed Dynamic ACPI Table Load:
[ 3.059611] ACPI: SSDT 0xFFFF8B12792C4C00 00016D (v05 LEDS 00000001 INTL 20190215)
[ 3.112334] ACPI: Host-directed Dynamic ACPI Table Load:
[ 3.112367] ACPI: SSDT 0xFFFF8B12793D6B00 0000E5 (v05 i2c 00000001 INTL 20190215)
But I have not got my LED on,and also I ensure CONFIG_LEDS_GPIO=y and CONFIG_LEDS_CLASS=y in my kernel configuration and built kernel.
Follow this leds.asli and try to create test example that is work now.
example:
Device (DEV)
{
Name (_HID, "PRP0001")
Name (_DDN, "GPIO LEDs device")
Name (_CRS, ResourceTemplate()
{
GpioIo (Shared, PullNone, 0x0000, 0x0000,
IoRestrictionOutputOnly, "\\_SB.PCI0.GPI0",
0x00, ResourceConsumer,,){12,13}
})
Name (_DSD, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () { "compatible", Package() { "gpio-leds" } },
},
ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
Package () {
Package () {"led-0", "LED0"},
Package () {"led-1", "LED1"},
}
})
/*
* For more information about these bindings see:
* Documentation/devicetree/bindings/leds/common.yaml,
* Documentation/devicetree/bindings/leds/leds-gpio.yaml and
* Documentation/firmware-guide/acpi/gpio-properties.rst.
*/
Name (LED0, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () {"label", "green"},
Package () {"default-state", "off"},
Package () {"gpios", Package () {^LEDS, 0, 0, 0}},
Package () {"retain-state-suspended", 1},
}
})
Name (LED1, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () {"label", "red"},
Package () {"default-state", "off"},
Package () {"gpios", Package () {^LEDS, 0, 1, 0}},
Package () {"retain-state-suspended", 1},
}
})
}
/sys/kernel/debug/gpio:
root#:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-191, parent: pci/0000:00:0c.0, 0000:00:0c.0:
gpio-12 ( |green ) out lo
gpio-13 ( |red ) out lo
gpio-71 ( |shutdown ) out hi
gpio-77 ( |sd_cd ) in hi IRQ
gpio-96 ( |ACPI:OpRegion ) out hi
gpio-110 ( |cs ) out hi
gpio-111 ( |cs ) out hi
gpio-112 ( |cs ) out lo
gpio-113 ( |cs ) out lo
gpio-184 ( |device-wakeup ) out lo
gpio-185 ( |host-wakeup ) in lo IRQ
Related
When kernel run finished, a code "echo 1 > /proc/sys/net/ipv4/ip_forward" execute in the last of /etc/rc.sh. About restart 10 to 20 times , the kernel will crash once when run this code.
I don't know how to resolve this problem, because the most times board start success.
Following is the log from board to kernel crash. Can somebody give me some advice? Thanks!
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Linux version 4.1.0 (guyanjun#localhost.localdomain) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #1 SMP PREEMPT Tue Apr 19 10:00:22 CST 2022
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Altera SOCFPGA Arria 10
[ 0.000000] ***** enter arm_memblock_init phys_initrd_start = 0x3000000, phys_initrd_size = 0x1e00000*****
[ 0.000000] phys_initrd_start: 0x3000000, phys_initrd_size: 0x1e00000
[ 0.000000] phys_initrd_start: 0x3000000, phys_initrd_size: 0x1e00000
[ 0.000000] phys_initrd_start: 0x3000000, phys_initrd_size: 0x1e00000
[ 0.000000] initrd_start: 0xc3000000, initrd_end: 0xc4e00000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu #e590a000 s19904 r8192 d21056 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 153924
[ 0.000000] Kernel command line: console=ttyS0,115200 initrd=0x3000000,30M root=/dev/ram0 rw init=/linuxrc rootfstype=ext2 mem=606M ip=172.27.246.2:::::eth1:off isolcpus=1
[ 0.000000] IP-Config: Parameter #0: `172.27.246.2'
[ 0.000000] IP-Config: Parameter #5: `eth1'
[ 0.000000] IP-Config: Parameter #6: `off'
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 576444K/620544K available (5056K kernel code, 481K rwdata, 1512K rodata, 300K init, 123K bss, 44100K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe6000000 - 0xff000000 ( 400 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe5e00000 ( 606 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0672360 (6569 kB)
[ 0.000000] .init : 0xc0673000 - 0xc06be000 ( 300 kB)
[ 0.000000] .data : 0xc06be000 - 0xc0736604 ( 482 kB)
[ 0.000000] .bss : 0xc0736604 - 0xc0755298 ( 124 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] SOCFPGA: Unable to find sdr-ctl
[ 0.000000] L2C: platform modifies aux control register: 0x72160001 -> 0x72560001
[ 0.000000] L2C: platform provided aux values permit register corruption.
[ 0.000000] L2C: DT/platform modifies aux control register: 0x72160001 -> 0x72560001
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310: enabling full line of zeros but not enabled in Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76560001
[ 0.000000] ^^^^^res.start = 0xffffc600 ^^^^^
[ 0.000000] ^^^^^ event_timer->name =timer irq=17 ^^^^^
[ 0.000000] ^^^^^res.start = 0xffc02700 ^^^^^
[ 0.000000] ^^^^^ base = 0xe6008700 , irq = 17 ^^^^^
[ 0.000000] ^^^^^res.start = 0xffc02800 ^^^^^
[ 0.000000] clocksource timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.000004] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[ 0.000294] Console: colour dummy device 80x30
[ 0.000313] Calibrating delay loop... 2387.14 BogoMIPS (lpj=11935744)
[ 0.059769] pid_max: default: 32768 minimum: 301
[ 0.059873] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.059883] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.060462] CPU: Testing write buffer coherency: ok
[ 0.060684] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060755] Setting up static identity map for 0x8280 - 0x82d8
[ 0.179782] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.179851] Brought up 2 CPUs
[ 0.179866] SMP: Total of 2 processors activated (4780.85 BogoMIPS).
[ 0.179874] CPU: All CPU(s) started in SVC mode.
[ 0.180300] devtmpfs: initialized
[ 0.186998] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.187371] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.188557] NET: Registered protocol family 16
[ 0.188609] fpga bridge driver
[ 0.189307] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.194827] ^^^^^hwirq = 0 ^^^^^
[ 0.198103] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.198114] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.233043] FPGA Mangager framework driver
[ 0.233452] vgaarb: loaded
[ 0.233744] SCSI subsystem initialized
[ 1.229773] i2c_designware ffc02300.i2c: controller timed out
[ 1.229796] lcd_load_custom_fonts: i2c_master_send returns -110
[ 2.229765] i2c_designware ffc02300.i2c: controller timed out
[ 2.229777] lcd_cmd_no_params: i2c_master_send returns -110
[ 3.229764] i2c_designware ffc02300.i2c: controller timed out
[ 3.229776] lcd_cmd_one_param: i2c_master_send returns -110
[ 4.229764] i2c_designware ffc02300.i2c: controller timed out
[ 4.229775] lcd_cmd_no_params: i2c_master_send returns -110
[ 4.229800] lcd-comm 0-0028: LCD driver initialized
[ 4.230145] pps_core: LinuxPPS API ver. 1 registered
[ 4.230154] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti#linux.it>
[ 4.230183] PTP clock support registered
[ 4.231352] Switched to clocksource timer
[ 4.307511] NET: Registered protocol family 2
[ 4.308498] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 4.308557] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 4.308648] TCP: Hash tables configured (established 8192 bind 8192)
[ 4.308734] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 4.308785] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 4.308999] NET: Registered protocol family 1
[ 4.309891] RPC: Registered named UNIX socket transport module.
[ 4.309903] RPC: Registered udp transport module.
[ 4.309910] RPC: Registered tcp transport module.
[ 4.309917] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 4.310161] Trying to unpack rootfs image as initramfs...
[ 4.310637] rootfs image is not initramfs (no cpio magic); looks like an initrd
[ 4.439724] Freeing initrd memory: 30720K (c3000000 - c4e00000)
[ 4.440479] CPU PMU: Failed to parse /sopc#0/pmu0/interrupt-affinity[0]
[ 4.440532] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 4.440627] arm-pmu arm-pmu: PMU:CTI successfully enabled for 2 cores
[ 4.442146] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 4.459771] NFS: Registering the id_resolver key type
[ 4.459815] Key type id_resolver registered
[ 4.459823] Key type id_legacy registered
[ 4.459847] Installing knfsd (copyright (C) 1996 okir#monad.swb.de).
[ 4.460760] ntfs: driver 2.1.32 [Flags: R/W].
[ 4.461307] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[ 4.463814] io scheduler noop registered (default)
[ 4.465279] PCI host bridge /sopc#0/pcie#0xc0000000 ranges:
[ 4.465308] MEM 0xc0000000..0xcfffffff -> 0x00000000
[ 4.465482] altera-pcie c0000000.pcie: PCI host bridge to bus 0000:00
[ 4.465496] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 4.465510] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xcfffffff] (bus address [0x00000000-0x0fffffff])
[ 4.465793] ^^^^^^^^^^^^^^^^^^^^^^^Enter altera_pcie_retrain
[ 4.466574] ^^^^^^^^^^^^^^^^^^altera_pcie_retrain:altera_pcie is link up spend 645us!
[ 4.468065] PCI: bus0: Fast back to back transfers disabled
[ 4.468096] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 4.470649] PCI: bus1: Fast back to back transfers disabled
[ 4.470987] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0000000-0xc0ffffff]
[ 4.470999] pci 0000:00:00.0: BAR 1: assigned [mem 0xc1000000-0xc100000f]
[ 4.472112] pci 0000:01:00.0: BAR 0: assigned [mem 0xc0000000-0xc0ffffff]
[ 4.472158] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 4.472208] pci 0000:00:00.0: bridge window [mem 0xc0000000-0xc0ffffff]
[ 4.472451] PCI host bridge /sopc#0/pcie#0xd0000000 ranges:
[ 4.472474] MEM 0xd0000000..0xdfffffff -> 0x00000000
[ 4.472724] altera-pcie d0000000.pcie: PCI host bridge to bus 0001:00
[ 4.472739] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 4.472751] pci_bus 0001:00: root bus resource [mem 0xd0000000-0xdfffffff] (bus address [0x00000000-0x0fffffff])
[ 4.473026] ^^^^^^^^^^^^^^^^^^^^^^^Enter altera_pcie_retrain
[ 4.473805] ^^^^^^^^^^^^^^^^^^altera_pcie_retrain:altera_pcie is link up spend 645us!
[ 4.475855] PCI: bus0: Fast back to back transfers disabled
[ 4.475887] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 4.478709] PCI: bus1: Fast back to back transfers disabled
[ 4.479163] pci 0001:00:00.0: BAR 8: assigned [mem 0xd0000000-0xd0ffffff]
[ 4.479176] pci 0001:00:00.0: BAR 1: assigned [mem 0xd1000000-0xd100000f]
[ 4.479222] pci 0001:01:00.0: BAR 0: assigned [mem 0xd0000000-0xd0ffffff]
[ 4.479264] pci 0001:00:00.0: PCI bridge to [bus 01]
[ 4.479313] pci 0001:00:00.0: bridge window [mem 0xd0000000-0xd0ffffff]
[ 4.484077] dma-pl330 ffda1000.dma: Loaded driver for PL330 DMAC-341330
[ 4.484093] dma-pl330 ffda1000.dma: DBUFF-512x8bytes Num_Chans-8 Num_Peri-32 Num_Events-8
[ 4.492766] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.495144] console [ttyS0] disabled
[ 4.495250] ffc02100.serial: ttyS0 at MMIO 0xffc02100 (irq = 35, base_baud = 6250000) is a 16550A
[ 5.411683] console [ttyS0] enabled
[ 5.416223] socfpga_a10_fpga_manager ffd03000.fpgamgr: fpga manager [SoCFPGA Arria10 FPGA Manager] registered as minor 0
[ 5.430169] brd: module loaded
[ 5.433794] at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
[ 5.441682] ^^^^^ enter cqspi_probe ^^^^^
[ 5.445914] ^^^^^ cs = 0 ^^^^^
[ 5.449082] cadence-qspi ff809000.flash: Read data capture delay for 50000000 baud calibrated to 1 (0 - 2)
[ 5.459299] ^^^^^ id = 0xc04fed30 ^^^^^
[ 5.463257] ~~~~~~~~spi_nor_scan:mutex_init~~~~~~~~~~~~
[ 5.468463] ^^^^^ mode = 0x3, info->flags = 0x40 ^^^^^
[ 5.473725] cadence-qspi ff809000.flash: mx66l1g45g (131072 Kbytes)
[ 5.479967] mtd .name = ff809000.flash, .size = 0x8000000 (128MiB),.erasesize = 0x00010000 (64KiB) .numeraseregions = 0
[ 5.491074] 8 ofpart partitions found on MTD device ff809000.flash
[ 5.497229] Creating 8 MTD partitions on "ff809000.flash":
[ 5.502729] 0x000000000000-0x000000100000 : "Uboot"
[ 5.508612] 0x000000100000-0x000000500000 : "Kernel Image & Device Tree"
[ 5.516508] 0x000000500000-0x000000900000 : "Root Filesystem - RAMFS"
[ 5.524144] 0x000000900000-0x000000a00000 : "Rsv"
[ 5.529977] 0x000000a00000-0x000001200000 : "Kernel Image & Device Tree Backup"
[ 5.538452] 0x000001200000-0x000002900000 : "Fpga Area"
[ 5.544960] 0x000002900000-0x000004000000 : "Fpga Area-backup"
[ 5.551952] 0x000004000000-0x000008000000 : "flashdev"
[ 5.558172] cadence-qspi ff809000.flash: Cadence QSPI NOR flash driver
[ 5.568573] libphy: Fixed MDIO Bus: probed
[ 5.573758] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[ 5.579568] e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
[ 5.586849] ^^^^^ enter stmmac_probe_config_dt func ^^^^^
[ 5.592750] =======.======compare phy_mode with rgmii.
[ 5.597920] =======.======compare phy_mode with rgmii.
[ 5.603083] ==============.=============dwmac->interface = 7
[ 5.608791] ^^^^^ enter stmmac_dvr_probe ndev->name = (null) ^^^^^
[ 5.615303] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 5.620333] Ring mode enabled
[ 5.623415] DMA HW capability register supported
[ 5.627925] Enhanced/Alternate descriptors
[ 5.632307] Enabled extended descriptors
[ 5.636300] RX Checksum Offload Engine supported (type 2)
[ 5.641809] TX Checksum insertion supported
[ 5.646061] ^^^^^ call stmmac_hw_init successful ^^^^^
[ 5.651274] Enable RX Mitigation via HW Watchdog Timer
[ 5.659452] libphy: stmmac: probed
[ 5.663065] eth0: No PHY found
[ 5.666235] ^^^^^ enter netif_napi_del ^^^^^
[ 5.670575] stmmac_pltfr_probe: main driver probe failed^^^^^ enter stmmac_probe_config_dt func ^^^^^
[ 5.680084] =======.======compare phy_mode with gmii.
[ 5.685206] =======.======compare phy_mode with gmii.
[ 5.690237] ==============.=============dwmac->interface = 2
[ 5.695984] ^^^^^ enter stmmac_dvr_probe ndev->name = (null) ^^^^^
[ 5.702306] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 5.707335] Ring mode enabled
[ 5.710375] DMA HW capability register supported
[ 5.714921] Enhanced/Alternate descriptors
[ 5.719268] Enabled extended descriptors
[ 5.723291] RX Checksum Offload Engine supported (type 2)
[ 5.728751] TX Checksum insertion supported
[ 5.733012] ^^^^^ call stmmac_hw_init successful ^^^^^
[ 5.738212] Enable RX Mitigation via HW Watchdog Timer
[ 5.744133] ^^^^^ enter stmmac_probe_config_dt func ^^^^^
[ 5.749615] =======.======compare phy_mode with mii.
[ 5.754778] =======.======compare phy_mode with mii.
[ 5.759722] ==============.=============dwmac->interface = 1
[ 5.765420] ^^^^^ enter stmmac_dvr_probe ndev->name = (null) ^^^^^
[ 5.771742] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 5.776771] Ring mode enabled
[ 5.779811] DMA HW capability register supported
[ 5.784392] Enhanced/Alternate descriptors
[ 5.788739] Enabled extended descriptors
[ 5.792763] RX Checksum Offload Engine supported (type 2)
[ 5.798224] TX Checksum insertion supported
[ 5.802505] ^^^^^ call stmmac_hw_init successful ^^^^^
[ 5.807706] Enable RX Mitigation via HW Watchdog Timer
[ 5.814251] mousedev: PS/2 mouse device common for all mice
[ 6.811022] i2c_designware ffc02300.i2c: controller timed out
[ 6.816771] rtc-ds1307: probe of 0-0068 failed with error -5
[ 6.822521] i2c /dev entries driver
[ 6.827010] ^^^^^ enter dw_wdt_drv_probe ^^^^^
[ 6.831935] ^^^^^ step 1 ^^^^^
[ 6.835079] /sopc#0/timer#0xffd00300: could not get #clock-cells for /sopc#0/clkmgr#0xffd04000
[ 6.843716] dw_wdt: probe of ffd00300.timer failed with error -2
[ 6.850350] oprofile: using arm/armv7-ca9
[ 6.854881] NET: Registered protocol family 17
[ 6.859343] NET: Registered protocol family 15
[ 6.864035] NET: Registered protocol family 33
[ 6.868465] Key type rxrpc registered
[ 6.872151] Key type rxrpc_s registered
[ 6.876011] 8021q: 802.1Q VLAN Support v1.8
[ 6.880234] Key type dns_resolver registered
[ 6.884749] ThumbEE CPU extension supported.
[ 6.889016] Registering SWP/SWPB emulation handler
[ 6.898901] IP-Config: Entered.
[ 6.992767] IP-Config: eth1 UP (able=0, xid=00000000)
[ 7.011041] IP-Config: Guessing netmask 255.255.0.0
[ 7.016047] IP-Config: Complete:
[ 7.019268] device=eth1, hwaddr=00:01:02:00:01:c0, ipaddr=172.27.246.2, mask=255.255.0.0, gw=255.255.255.255
[ 7.029538] host=172.27.246.2, domain=, nis-domain=(none)
[ 7.035381] bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
[ 7.043554] ttyS0 - failed to request DMA
[ 7.047690] RAMDISK: gzip image found at block 0
[ 7.870209] VFS: Mounted root (ext2 filesystem) on device 1:0.
[ 7.876262] devtmpfs: mounted
[ 7.879472] Freeing unused kernel memory: 300K (c0673000 - c06be000)
^^^^^^step one^^^^^^
^^^^^step two^^^^^
^^^^^ aaaa=1:eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 ^^^^^[ 7.909610] device eth1 entered promiscuous mode
^^^^^bbbb=00^^^^^
^^^^^cccc=01^^^^^
^^^^^ there is no eth0
^^^^^ set eth1 ^^^^^
[ 7.919259] device eth2 entered promiscuous mode
^^^^^ set eth2 ^^^^^
[ 8.049576] random: nonblocking pool is initialized
[ 8.762977] Unable to handle kernel paging request at virtual address e60f8000
[ 8.770175] pgd = e0580000
[ 8.772941] [e60f8000] *pgd=2542f811, *pte=00000000, *ppte=00000000
[ 8.779225] Internal error: Oops: 7 [#1] PREEMPT SMP ARM
[ 8.784514] Modules linked in:
[ 8.787571] CPU: 0 PID: 658 Comm: rc.sh Not tainted 4.1.0 #1
[ 8.793203] Hardware name: Altera SOCFPGA
[ 8.797196] task: e54f7900 ti: e00b0000 task.ti: e00b0000
[ 8.802580] PC is at dwmac1000_rx_ipc_enable+0x10/0x58
[ 8.807704] LR is at stmmac_set_features+0x3c/0x44
[ 8.812474] pc : [<c03ab914>] lr : [<c03a4be0>] psr: 60050013
[ 8.812474] sp : e00b1e28 ip : c03ab910 fp : 00000000
[ 8.823897] r10: c072a09c r9 : c0726b5c r8 : 00000000
[ 8.829098] r7 : e5642400 r6 : e5535000 r5 : 00000000 r4 : e60f8000
[ 8.835595] r3 : c03ab904 r2 : 00000000 r1 : 00000000 r0 : e3123480
[ 8.842095] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 8.849197] Control: 10c5387d Table: 2058004a DAC: 00000015
[ 8.854916] Process rc.sh (pid: 658, stack limit = 0xe00b0218)
[ 8.860723] Stack: (0xe00b1e28 to 0xe00b2000)
[ 8.865063] 1e20: c03ab904 00004921 00000000 c03a4be0 00000000 c03ff1dc
[ 8.873205] 1e40: e5535000 60050013 00004921 00000000 e5535000 00000001 c0726ac0 c03ff238
[ 8.881346] 1e60: e5535000 c03ff26c e5535000 60050013 e00b1e80 e5535034 e5535000 00000001
[ 8.889487] 1e80: c0726ac0 c045683c e00b1f80 00000001 001676f8 e56a5b40 c072a09c 00000001
[ 8.897628] 1ea0: 001676f8 e00b1f80 00000002 00000002 00000000 c014f144 e00b1f80 001676f8
[ 8.905769] 1ec0: 00000002 00000002 001676f8 001676f8 e0116540 e00b1f80 00000002 001676f8
[ 8.913910] 1ee0: 00000000 c014f178 00000001 001676f8 00000002 c00fa06c 00000000 c02d6750
[ 8.922051] 1f00: 00000000 e5432800 00000001 00000001 00000002 00000188 001676f8 c00fc160
[ 8.930192] 1f20: 00000020 c00fa750 00000001 e0116540 e00b1f80 00000002 e0116540 001676f8
[ 8.938333] 1f40: e0116540 001676f8 e00b1f80 00000002 00000002 c00fa794 e0116540 001676f8
[ 8.946474] 1f60: 00000002 00000000 00000000 e0116540 e0116540 00000002 001676f8 c00faeb0
[ 8.954615] 1f80: 00000002 00000000 00000002 0016466c 00000001 001676f8 00000004 c000ee84
[ 8.962755] 1fa0: e00b0000 c000ed00 0016466c 00000001 00000001 001676f8 00000002 00000000
[ 8.970896] 1fc0: 0016466c 00000001 001676f8 00000004 00000020 001668c8 00000000 00000000
[ 8.979037] 1fe0: 00000000 bebb8614 000289e9 0000b906 60050030 00000001 00000000 00000000
[ 8.987191] [<c03ab914>] (dwmac1000_rx_ipc_enable) from [<c03a4be0>] (stmmac_set_features+0x3c/0x44)
[ 8.996293] [<c03a4be0>] (stmmac_set_features) from [<c03ff1dc>] (__netdev_update_features+0x1c8/0x210)
[ 9.005648] [<c03ff1dc>] (__netdev_update_features) from [<c03ff238>] (netdev_update_features+0x14/0x28)
[ 9.015088] [<c03ff238>] (netdev_update_features) from [<c03ff26c>] (dev_disable_lro+0x20/0x168)
[ 9.023843] [<c03ff26c>] (dev_disable_lro) from [<c045683
inet_sysctl_forward+0x104/0x1a0)
[ 9.032687] [<c045683c>] (devinet_sysctl_forward) from [<c014f144>] (proc_sys_call_handler+0xa0/0xbc)
[ 9.041870] [<c014f144>] (proc_sys_call_handler) from [<c014f178>] (proc_sys_write+0x18/0x20)
[ 9.050366] [<c014f178>] (proc_sys_write) from [<c00fa06c>] (__vfs_write+0x34/0xdc)
[ 9.057994] [<c00fa06c>] (__vfs_write) from [<c00fa794>] (vfs_write+0xac/0x150)
[ 9.065274] [<c00fa794>] (vfs_write) from [<c00faeb0>] (SyS_write+0x44/0x84)
[ 9.072300] [<c00faeb0>] (SyS_write) from [<c000ed00>] (ret_fast_syscall+0x0/0x3c)
[ 9.079839] Code: e92d4038 e52de004 ebf1aa91 e590402c (e5945000)
[ 9.086349] stmmaceth ff802000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 9.094483] ---[ end trace 8a28184619420ae6 ]---
nb_sys_init: nb_common_init error! errno = -303
nb_sys_init error!
172.27.246.2 login: [ 10.091054] stmmaceth ff804000.ethernet eth2: Link is Up - 100Mbps/Full - flow control off
172.27.246.2 login:
I have an ARM based embedded system with 1GB of memory. The kernel, dtb file and root filesystem (initrd.gz) are stored in a FIT file in flash. U-boot loads the FIT into ram and boots the kernel.
I'm having a problem where if I slightly increase the size of my root file system my system no longer boots and I can't figure out where I'm exceeding a memory boundary.
This configuration works (initrd.gz size ~30MB) u-boot output:
Booting using the fdt blob at 0x20683744
Loading Kernel Image ... OK
Loading Ramdisk to 8e1d0000, end 8ffffebd ... OK
Loading Device Tree to 8e1bf000, end 8e1cf118 ... OK
Kernel output:
[ 2.761235] RAMDISK: gzip image found at block 0
[ 5.345119] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
After increasing the size of initrd.gz this configuration doesn't work (initrd.gz size ~35MB):
Booting using the fdt blob at 0x20683744
Loading Kernel Image ... OK
Loading Ramdisk to 8dfc1000, end 8ffff795 ... OK
Loading Device Tree to 8dfb0000, end 8dfc0118 ... OK
This is the Kernel error I get when trying to use the larger initrd.gz:
[ 2.781244] RAMDISK: gzip image found at block 0
[ 5.731423] RAMDISK: EOF while reading compressed data
[ 5.739401] uncompression error
[ 6.192160] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
[ 6.200144] VFS: Mounted root (ext4 filesystem) on device 1:0.
[ 6.207089] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 64974
[ 6.218882] EXT4-fs (ram0): Remounting filesystem read-only
[ 6.225112] devtmpfs: error mounting -117
I have 1GB of ram starting at 0x80000000 and U-boot detects the right amount of memory:
DRAM: already initialized, 1 GiB (capacity:1024 MiB, VGA:0 MiB), ECC off
Kenel config of ramdisk size:
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=1
CONFIG_BLK_DEV_RAM_SIZE=256000
Full U-boot and Kernel Log:
U-Boot SPL 2019.04 (Nov 24 2021 - 18:02:33 +0000)
Trying to boot from RAM
U-Boot 2019.04 (Nov 24 2021 - 18:02:33 +0000)
UnKnow-SOC: 5010203
RST: Power On
eSPI Mode: SIO:Enable : SuperIO-2e
Eth: MAC0: RMII/NCSI, MAC1: RMII/NCSI, MAC2: RMII/NCSI, MAC3: RMII/NCSI
Model: Aspeed BMC
DRAM: already initialized, 1 GiB (capacity:1024 MiB, VGA:0 MiB), ECC off
PCIE-0: Link down
MMC:
sdhci_slot0#100: 1, emmc_slot0#100: 0
Loading Environment from SPI Flash... SF: Detected mt25ql02g with page size 256 Bytes, erase size 4 KiB, total 256 MiB
*** Warning - bad CRC, using default environment
In: serial#1e784000
Out: serial#1e784000
Err: serial#1e784000
Model: Aspeed BMC
adc 15 value = 0x385
board_rev: 3
Net:
Warning: ftgmac#1e660000 (eth0) using random MAC address - 12:2c:e3:e4:22:c7
eth0: ftgmac#1e660000
Warning: ftgmac#1e680000 (eth1) using random MAC address - fa:38:94:5e:b7:43
, eth1: ftgmac#1e680000
Hit any key to stop autoboot: 0
## Loading kernel from FIT Image at 20100000 ...
Using 'conf-1' configuration
Trying 'kernel-1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x201000cc
Data Size: 5780952 Bytes = 5.5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80008000
Entry Point: 0x80008000
Verifying Hash Integrity ... OK
## Loading ramdisk from FIT Image at 20100000 ...
Using 'conf-1' configuration
Trying 'ramdisk-1' ramdisk subimage
Description: RAMDISK
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x206908e0
Data Size: 35515536 Bytes = 33.9 MiB
Architecture: ARM
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Verifying Hash Integrity ... OK
## Loading fdt from FIT Image at 20100000 ...
Using 'conf-1' configuration
Trying 'fdt-1' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x20683754
Data Size: 53529 Bytes = 52.3 KiB
Architecture: ARM
Verifying Hash Integrity ... OK
Booting using the fdt blob at 0x20683754
Loading Kernel Image ... OK
Loading Ramdisk to 8de21000, end 8ffffc90 ... OK
Loading Device Tree to 8de10000, end 8de20118 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 5.1.3 (aaron#aaron-VirtualBox) (gcc version 9.2.0 (GCC)) #20 SMP Wed Jan 5 14:22:25 CST 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: AST2620 PSC
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0xbf000000
[ 0.000000] random: get_random_bytes called from start_kernel+0x9c/0x4e0 with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu s39820 r8192 d21620 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 243712
[ 0.000000] Kernel command line: console=ttyS4,115200n8 root=/dev/ram rw
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 911132K/983040K available (8192K kernel code, 512K rwdata, 1892K rodata, 1024K init, 194K bss, 55524K reserved, 16384K cma-reserved)
[ 0.000000] ftrace: allocating 28861 entries in 57 pages
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] scu-irq controller registered, irq 17
[ 0.000000] scu-irq controller registered, irq 18
[ 0.000000] arch_timer: cp15 timer(s) running at 1200.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x114c1bbbeec, max_idle_ns: 440795229572 ns
[ 0.000006] sched_clock: 56 bits at 1200MHz, resolution 0ns, wraps every 2199023255551ns
[ 0.000015] Switching to timer-based delay loop, resolution 0ns
[ 0.001364] Calibrating delay loop (skipped), value calculated using timer frequency.. 2400.00 BogoMIPS (lpj=12000000)
[ 0.001381] pid_max: default: 32768 minimum: 301
[ 0.001584] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002112] *** VALIDATE proc ***
[ 0.002213] *** VALIDATE cgroup1 ***
[ 0.002224] *** VALIDATE cgroup2 ***
[ 0.002234] CPU: Testing write buffer coherency: ok
[ 0.002522] /cpus/cpu#0 missing clock-frequency property
[ 0.002538] /cpus/cpu#1 missing clock-frequency property
[ 0.002549] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.003326] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.003436] rcu: Hierarchical SRCU implementation.
[ 0.004015] smp: Bringing up secondary CPUs ...
[ 0.004543] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.004678] smp: Brought up 1 node, 2 CPUs
[ 0.004690] SMP: Total of 2 processors activated (4800.00 BogoMIPS).
[ 0.004695] CPU: All CPU(s) started in SVC mode.
[ 0.005462] devtmpfs: initialized
[ 0.015183] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.015413] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.015436] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.016155] pinctrl core: initialized pinctrl subsystem
[ 0.016780] NET: Registered protocol family 16
[ 0.017796] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.019143] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.019159] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.034904] i2cg - base_clk0 : 1000000
[ 0.034974] i2cg - base_clk1 : 4000000
[ 0.035007] i2cg - base_clk2 : 10000000
[ 0.035030] i2cg - base_clk3 : 33333333
[ 0.035059] i2c global registered
[ 0.052820] vgaarb: loaded
[ 0.053173] SCSI subsystem initialized
[ 0.053462] usbcore: registered new interface driver usbfs
[ 0.053527] usbcore: registered new interface driver hub
[ 0.053629] usbcore: registered new device driver usb
[ 0.053777] EDAC MC: Ver: 3.0.0
[ 0.056747] clocksource: Switched to clocksource arch_sys_counter
[ 0.102558] NET: Registered protocol family 2
[ 0.103052] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.103077] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.103136] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.103232] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.103337] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.103383] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.103595] NET: Registered protocol family 1
[ 0.104121] RPC: Registered named UNIX socket transport module.
[ 0.104133] RPC: Registered udp transport module.
[ 0.104138] RPC: Registered tcp transport module.
[ 0.104142] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.104365] Trying to unpack rootfs image as initramfs...
[ 0.104959] rootfs image is not initramfs (no cpio magic); looks like an initrd
[ 0.230086] Freeing initrd memory: 34684K
[ 0.232404] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.232955] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.233298] jffs2: version 2.2. (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.238540] NET: Registered protocol family 38
[ 0.238631] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.240354] PCIE- Link down
[ 0.240394] aspeed-pcie 1e6ed200.pcie: host bridge /ahb/apb/pcie#1e6ed2000 ranges:
[ 0.240439] aspeed-pcie 1e6ed200.pcie: IO 0x00010000..0x0001ffff -> 0x00010000
[ 0.240463] aspeed-pcie 1e6ed200.pcie: MEM 0x70000000..0x7ffffffe -> 0x70000000
[ 0.240601] aspeed-pcie 1e6ed200.pcie: PCI host bridge to bus 0000:00
[ 0.240615] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.240625] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x10000-0x1ffff])
[ 0.240634] pci_bus 0000:00: root bus resource [mem 0x70000000-0x7ffffffe]
[ 0.244693] PCI: bus0: Fast back to back transfers disabled
[ 0.246332] aspeed-kcs-bmc: channel=1 addr=0xca0 idr=0x24 odr=0x30 str=0x3c
[ 0.247024] aspeed-kcs-bmc: channel=2 addr=0xca8 idr=0x28 odr=0x34 str=0x40
[ 0.247519] aspeed-kcs-bmc: channel=3 addr=0xca2 idr=0x2c odr=0x38 str=0x44
[ 0.249831] aspeed_jtag: driver successfully loaded.
[ 0.250549] aspeed_mctp: reset.
[ 0.251512] aspeed_mctp: driver successfully loaded.
[ 0.251843] aspeed_mctp 1e6f9000.mctp: no irq specified
[ 0.251924] aspeed_mctp: reset.
[ 0.252556] aspeed_mctp: driver successfully loaded.
[ 0.253971] Serial: 8250/16550 driver, 17 ports, IRQ sharing enabled
[ 0.259918] rts_gpio: 912
[ 0.260616] 1e783000.serial: ttyS0 at MMIO 0x1e783000 (irq = 55, base_baud = 115384) is a 16550A
[ 0.261593] 1e784000.serial: ttyS4 at MMIO 0x1e784000 (irq = 56, base_baud = 115384) is a 16550A
[ 0.963132] printk: console [ttyS4] enabled
[ 0.968571] rts_gpio: 913
[ 0.971997] 1e78d000.serial: ttyS1 at MMIO 0x1e78d000 (irq = 64, base_baud = 115384) is a 16550A
[ 0.982439] rts_gpio: 914
[ 0.985636] 1e78e000.serial: ttyS2 at MMIO 0x1e78e000 (irq = 65, base_baud = 115384) is a 16550A
[ 0.996096] rts_gpio: 984
[ 0.999323] 1e790000.serial: ttyS5 at MMIO 0x1e790000 (irq = 74, base_baud = 115384) is a 16550A
[ 1.009701] rts_gpio: 985
[ 1.012888] 1e790100.serial: ttyS6 at MMIO 0x1e790100 (irq = 75, base_baud = 115384) is a 16550A
[ 1.023277] rts_gpio: 986
[ 1.026465] 1e790200.serial: ttyS7 at MMIO 0x1e790200 (irq = 76, base_baud = 115384) is a 16550A
[ 1.036908] rts_gpio: 987
[ 1.040107] 1e790300.serial: ttyS8 at MMIO 0x1e790300 (irq = 77, base_baud = 115384) is a 16550A
[ 1.066850] timeriomem_rng 1e6e2524.hwrng: 32bits from 0x(ptrval) # 1us
[ 1.075683] brd: module loaded
[ 1.085457] loop: module loaded
[ 1.102789] aspeed_espi: driver successfully loaded.
[ 1.109342] aspeed espi oob loaded
[ 1.114069] aspeed espi-flash loaded
[ 1.118894] aspeed espi-vw loaded
[ 1.123077] no host mapping address
[ 1.127638] aspeed espi-peripheral loaded
[ 1.133917] Uniform Multi-Platform E-IDE driver
[ 1.139157] ide-gd driver 1.18
[ 1.143380] aspeed-smc 1e620000.spi: bus_width 4, Using 50 MHz SPI frequency
[ 1.151375] aspeed-smc 1e620000.spi: mt25ql02g (262144 Kbytes)
[ 1.157905] aspeed-smc 1e620000.spi: CE0 window [ 0x20000000 - 0x30000000 ] 256MB
[ 1.166274] aspeed-smc 1e620000.spi: CE1 window [ 0x30000000 - 0x30000000 ] 0MB (disabled)
[ 1.175514] aspeed-smc 1e620000.spi: read control register: [406c0641]
[ 1.231003] 2 fixed-partitions partitions found on MTD device bmc
[ 1.237840] Creating 2 MTD partitions on "bmc":
[ 1.242900] 0x000000000000-0x0000000f0000 : "u-boot"
[ 1.249735] 0x0000000f0000-0x000000100000 : "u-boot-env"
[ 1.258061] fmc_spi 1e631000.spi: controller is unqueued, this is deprecated
[ 1.265961] fmc_spi_setup() cs: 0, spi->mode 0 spi->max_speed_hz 10000000 , spi->bits_per_word 8
[ 1.275894] spi_ctrl 1000600
[ 1.279315] fmc_spi 1e631000.spi: fmc_spi : driver loaded
[ 1.285718] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[ 1.295321] libphy: mdio-aspeed: probed
[ 1.317527] libphy: mdio-aspeed: probed
[ 1.337571] libphy: Fixed MDIO Bus: probed
[ 1.342821] CAN device driver interface
[ 1.347342] fmc_spi_setup() cs: 0, spi->mode 0 spi->max_speed_hz 10000000 , spi->bits_per_word 8
[ 1.357277] spi_ctrl 1000600
[ 1.366718] random: fast init done
[ 1.376060] mcp251x spi0.0 can0: MCP2515 successfully initialized.
[ 1.383412] ftgmac100 1e660000.ftgmac: Read MAC address 12:2c:e3:e4:22:c7 from chip
[ 1.706721] Micrel KSZ9031 Gigabit PHY 1e650000.mdio-1:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=1e650000.mdio-1:01, irq=POLL)
[ 1.722810] ftgmac100 1e660000.ftgmac eth0: irq 40, mapped at (ptrval)
[ 1.730423] ftgmac100 1e680000.ftgmac: Read MAC address fa:38:94:5e:b7:43 from chip
[ 1.966759] random: crng init done
[ 2.056721] Micrel KSZ9031 Gigabit PHY 1e650008.mdio-1:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=1e650008.mdio-1:02, irq=POLL)
[ 2.072798] ftgmac100 1e680000.ftgmac eth1: irq 41, mapped at 5781ec99
[ 2.080378] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.087688] ehci-pci: EHCI PCI platform driver
[ 2.092720] ehci-platform: EHCI generic platform driver
[ 2.098831] uhci_hcd: USB Universal Host Controller Interface driver
[ 2.106844] usbcore: registered new interface driver usb-storage
[ 2.114566] aspeed-rtc 1e781000.rtc: registered as rtc0
[ 2.120701] i2c /dev entries driver
[ 2.125785] I2C: i2c-bus [0]: adapter [100 khz]
[ 2.131948] I2C: i2c-bus [1]: adapter [100 khz]
[ 2.138084] I2C: i2c-bus [2]: adapter [100 khz]
[ 2.144187] I2C: i2c-bus [3]: adapter [100 khz]
[ 2.150371] I2C: i2c-bus [4]: adapter [100 khz]
[ 2.156494] I2C: i2c-bus [5]: adapter [100 khz]
[ 2.162623] I2C: i2c-bus [6]: adapter [100 khz]
[ 2.168811] I2C: i2c-bus [7]: adapter [100 khz]
[ 2.175180] dt: /memory node resources: first page r.start=0x80000000, resource_size=0x40000000, PAGE_SHIFT macro=0xc
[ 2.187201] EDAC MC0: Giving out device to module aspeed-edac controller MIC: DEV 1e6e0000.sdram (INTERRUPT)
[ 2.199022] sdhci: Secure Digital Host Controller Interface driver
[ 2.205926] sdhci: Copyright(c) Pierre Ossman
[ 2.210801] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.218349] sdhci-aspeed 1e740100.sdhci: Configuring for slot 0
[ 2.225083] devm_gpio_request pwr fail
[ 2.229396] devm_gpio_request pwr sw fail
[ 2.286744] mmc1: SDHCI controller on 1e740100.sdhci [1e740100.sdhci] using PIO
[ 2.295792] sdhci-aspeed 1e750100.sdhci: Configuring for slot 0
[ 2.356732] mmc0: SDHCI controller on 1e750100.sdhci [1e750100.sdhci] using ADMA
[ 2.383950] ASPEED Crypto Accelerator successfully registered
[ 2.401745] ASPEED RSA Accelerator successfully registered
[ 2.408446] usbcore: registered new interface driver usbhid
[ 2.414669] usbhid: USB HID core driver
[ 2.426826] aspeed_adc: trim 8
[ 2.431344] aspeed_adc: cv 6
[ 2.435474] aspeed_adc: trim 8
[ 2.440023] aspeed_adc: cv 8
[ 2.444788] peci-aspeed 1e78b000.peci-bus: peci bus 0 registered, irq 63
[ 2.453654] NET: Registered protocol family 10
[ 2.459779] Segment Routing with IPv6
[ 2.464342] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.471701] NET: Registered protocol family 17
[ 2.476681] can: controller area network core (rev 20170425 abi 9)
[ 2.483668] NET: Registered protocol family 29
[ 2.488654] can: raw protocol (rev 20170425)
[ 2.493416] can: broadcast manager protocol (rev 20170425 t)
[ 2.499747] can: netlink gateway (rev 20170425) max_hops=1
[ 2.505935] 8021q: 802.1Q VLAN Support v1.8
[ 2.510714] Registering SWP/SWPB emulation handler
[ 2.523358] liteon-pmc pmc: added a shelf FRU device
[ 2.583924] mmc0: Tuning failed, falling back to fixed sampling clock
[ 2.591583] mmc0: new HS200 MMC card at address 0001
[ 2.597851] mmcblk0: mmc0:0001 4FPD3R 3.64 GiB
[ 2.603214] mmcblk0boot0: mmc0:0001 4FPD3R partition 1 4.00 MiB
[ 2.610176] mmcblk0boot1: mmc0:0001 4FPD3R partition 2 4.00 MiB
[ 2.617078] mmcblk0rpmb: mmc0:0001 4FPD3R partition 3 512 KiB, chardev (246:0)
[ 2.626207] mmcblk0: p1 p2 p3
[ 2.776758] liteon-pmc pmc: Driver initialized
[ 2.782163] printk: console [netcon0] enabled
[ 2.787065] netconsole: network logging started
[ 2.792396] aspeed-rtc 1e781000.rtc: hctosys: unable to read the hardware clock
[ 2.801284] RAMDISK: gzip image found at block 0
[ 2.921922] uncompression error
[ 2.972435] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
[ 2.980416] VFS: Mounted root (ext4 filesystem) on device 1:0.
[ 2.987294] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 64974
[ 2.999086] EXT4-fs (ram0): Remounting filesystem read-only
[ 3.005312] devtmpfs: error mounting -117
[ 3.012546] Freeing unused kernel memory: 1024K
[ 3.047716] Checked W+X mappings: passed, no W+X pages found
[ 3.054041] Run /sbin/init as init process
[ 3.058946] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 145588
[ 3.070854] Starting init: /sbin/init exists but couldn't execute it (error -117)
[ 3.079216] Run /etc/init as init process
[ 3.083933] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 16411
[ 3.095740] Starting init: /etc/init exists but couldn't execute it (error -117)
[ 3.104009] Run /bin/init as init process
[ 3.108741] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 81107
[ 3.120551] Starting init: /bin/init exists but couldn't execute it (error -117)
[ 3.128827] Run /bin/sh as init process
[ 3.133153] EXT4-fs error (device ram0): ext4_lookup:1576: inode #2: comm swapper/0: deleted inode referenced: 81107
[ 3.144969] Starting init: /bin/sh exists but couldn't execute it (error -117)
[ 3.153044] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 3.168864] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.1.3 #20
[ 3.175465] Hardware name: Generic DT based system
[ 3.180806] Backtrace:
[ 3.183544] [<8010e5fc>] (dump_backtrace) from [<8010e880>] (show_stack+0x20/0x24)
[ 3.191993] r7:809fa93c r6:60000093 r5:00000000 r4:80c6c0a4
[ 3.198311] [<8010e860>] (show_stack) from [<808af8ac>] (dump_stack+0x8c/0xa0)
[ 3.206373] [<808af820>] (dump_stack) from [<80121b78>] (panic+0x124/0x2f0)
[ 3.214139] r7:809fa93c r6:80c11e84 r5:00000000 r4:80c80648
[ 3.220456] [<80121a58>] (panic) from [<808c74b0>] (kernel_init+0x11c/0x124)
[ 3.228320] r3:80c09c48 r2:00000000 r1:3dc34000 r0:809fa93c
[ 3.234628] r7:00000000
[ 3.237452] [<808c7394>] (kernel_init) from [<801010e8>] (ret_from_fork+0x14/0x2c)
[ 3.245896] Exception stack(0xbe0e5fb0 to 0xbe0e5ff8)
[ 3.251530] 5fa0: 00000000 00000000 00000000 00000000
[ 3.260654] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.269778] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.277154] r5:808c7394 r4:00000000
[ 3.281145] CPU0: stopping
[ 3.284164] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.1.3 #20
[ 3.290764] Hardware name: Generic DT based system
[ 3.296103] Backtrace:
[ 3.298832] [<8010e5fc>] (dump_backtrace) from [<8010e880>] (show_stack+0x20/0x24)
[ 3.307278] r7:00000000 r6:60000193 r5:00000000 r4:80c6c0a4
[ 3.313593] [<8010e860>] (show_stack) from [<808af8ac>] (dump_stack+0x8c/0xa0)
[ 3.321653] [<808af820>] (dump_stack) from [<80111668>] (handle_IPI+0x340/0x374)
[ 3.329904] r7:00000000 r6:00000000 r5:00000004 r4:80c80508
[ 3.336219] [<80111328>] (handle_IPI) from [<80102230>] (gic_handle_irq+0x84/0x88)
[ 3.344667] r10:80b5da40 r9:80c00000 r8:80c01ed8 r7:c0803000 r6:c0802000 r5:c080200c
[ 3.353401] r4:80c0a304 r3:80109afc
[ 3.357388] [<801021ac>] (gic_handle_irq) from [<80101a6c>] (__irq_svc+0x6c/0x90)
[ 3.365733] Exception stack(0x80c01ed8 to 0x80c01f20)
[ 3.371365] 1ec0: 00000000 000015f0
[ 3.380491] 1ee0: be7b18a0 8011c500 80c00000 00000000 80c09c70 80c09cac 80c71405 80a020d0
[ 3.389616] 1f00: 80b5da40 80c01f34 80c01f38 80c01f28 80109afc 80109b00 60000013 ffffffff
[ 3.398741] r9:80c00000 r8:80c71405 r7:80c01f0c r6:ffffffff r5:60000013 r4:80109b00
[ 3.407385] [<80109ab8>] (arch_cpu_idle) from [<808ceef4>] (default_idle_call+0x30/0x3c)
[ 3.416415] [<808ceec4>] (default_idle_call) from [<80154524>] (do_idle+0xe8/0x168)
[ 3.424960] [<8015443c>] (do_idle) from [<80154870>] (cpu_startup_entry+0x28/0x2c)
[ 3.433407] r9:80c80280 r8:80c09c40 r7:80c80280 r6:ffffffff r5:00000001 r4:000000c9
[ 3.442049] [<80154848>] (cpu_startup_entry) from [<808c738c>] (rest_init+0xb8/0xc0)
[ 3.450691] [<808c72d4>] (rest_init) from [<80b00b94>] (arch_call_rest_init+0x18/0x1c)
[ 3.459521] r5:00000001 r4:80c802d8
[ 3.463509] [<80b00b7c>] (arch_call_rest_init) from [<80b0109c>] (start_kernel+0x4a4/0x4e0)
[ 3.472827] [<80b00bf8>] (start_kernel) from [<00000000>] ( (null))
[ 3.479923] WDT reset called
BP
Root cause of issue:
It looks like ASPEED modified the low level memmove function in /lib/string.c to speed up flash copies. In their code, count is changed to a 4 byte boundary which breaks the back to front copy from memmove_wd.
#ifdef CONFIG_ASPEED_SPI_DMA
if (dest == src)
return dest;
if (
((u32)src >= ASPEED_FMC_CS0_BASE)
&& ((u32)src < (ASPEED_FMC_CS0_BASE + 0x10000000))) {
count = ((count + 3) / 4) * 4;
aspeed_spi_fastcpy((u32)dest, (u32)src, count);
return dest;
}
#endif
I switched memmove_wd() in u-boot/common/image.c to a simpler front to back copy and added the check for CONFIG_WDT and everything works now.
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) || defined(CONFIG_WDT)
{
while (len > 0)
{
size_t chunk = (len > chunksz) ? chunksz : len;
WATCHDOG_RESET();
memmove(to, from, chunk);
to += chunk;
from += chunk;
len -= chunk;
}
Another option would be to disable CONFIG_ASPEED_SPI_DMA.
I'm trying to boot Linux on QEMU for RISC-V. I have set up my own toolchain described below:
riscv-gnu-toolchain from git#github.com:riscv/riscv-gnu-toolchain.git
qemu v5.2.0 from https://github.com/qemu/qemu
linux v5.11 from https://github.com/torvalds/linux
busybox v1.33 from https://git.busybox.net/busybox
For Linux and Busybox, I am using basically the default config. I have compiled all of these projects from scratch.
I also created a initramfs image following the instructions here (step 8). I have remembered to make the init script executable.
Finally, I am trying to run with the command
qemu-system-riscv64 -m 4096M -nographic -machine virt -kernel linux/arch/riscv/boot/Image -initrd initramfs.cpio.gz -append "console=ttyS0 init=/init"
The kernel mostly boots fine, but fails to execute /init. The full boot log is below.
The error (-2 == ENOENT) suggests that the file was not found. This makes no sense if the initramfs is used.
I have used a similar command on previous busybox runs with QEMU and it works fine. The provided initramfs image is used as the root/ for the run. I have also tried to replace the /init script with a statically linked ELF binary, but that yields the same results. It seems to me that somehow, the filesystem is not being correctly mounted.
Alternately, I have also tried the instructions at the official tutorial, but the final run command is clearly wrong, as it tries to use the busybox folder as an image (file=busybox).
OpenSBI v0.8
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : riscv-virtio,qemu
Platform Features : timer,mfdeleg
Platform HART Count : 1
Boot HART ID : 0
Boot HART ISA : rv64imafdcsu
BOOT HART Features : pmp,scounteren,mcounteren,time
BOOT HART PMP Count : 16
Firmware Base : 0x80000000
Firmware Size : 92 KB
Runtime SBI Version : 0.2
MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b109
PMP0 : 0x0000000080000000-0x000000008001ffff (A)
PMP1 : 0x0000000000000000-0xffffffffffffffff (A,R,W,X)
[ 0.000000] Linux version 5.11.0 (abhattac#abhattac-HexHive) (riscv64-unknown-linux-gnu-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #5 SMP Mon Jul 19 14:40:38 CEST 2021
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] efi: UEFI not found.
[ 0.000000] Initial ramdisk at: 0x(____ptrval____) (6488064 bytes)
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000017fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000017fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000017fffffff]
[ 0.000000] SBI specification v0.2 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x8
[ 0.000000] SBI v0.2 TIME extension detected
[ 0.000000] SBI v0.2 IPI extension detected
[ 0.000000] SBI v0.2 RFENCE extension detected
[ 0.000000] software IO TLB: mapped [mem 0x00000000fbe00000-0x00000000ffe00000] (64MB)
[ 0.000000] SBI v0.2 HSM extension detected
[ 0.000000] riscv: ISA extensions acdfimsu
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 17 pages/cpu s32488 r8192 d28952 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1033735
[ 0.000000] Kernel command line: console=ttyS0 init=/init nokaslr
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Sorting __ex_table...
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 4036748K/4192256K available (7107K kernel code, 4905K rwdata, 4096K rodata, 2147K init, 305K bss, 155508K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] fixmap : 0xffffffcefee00000 - 0xffffffceff000000 (2048 kB)
[ 0.000000] pci io : 0xffffffceff000000 - 0xffffffcf00000000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffcf00000000 - 0xffffffcfffffffff (4095 MB)
[ 0.000000] vmalloc : 0xffffffd000000000 - 0xffffffdfffffffff (65535 MB)
[ 0.000000] lowmem : 0xffffffe000000000 - 0xffffffe0ffe00000 (4094 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: plic#c000000: mapped 53 interrupts with 1 handlers for 2 contexts.
[ 0.000000] random: get_random_bytes called from start_kernel+0x3b8/0x58c with crng_init=0
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000071] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[ 0.002538] Console: colour dummy device 80x25
[ 0.003999] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[ 0.004128] pid_max: default: 32768 minimum: 301
[ 0.006600] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.006649] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.026393] rcu: Hierarchical SRCU implementation.
[ 0.027592] EFI services will not be available.
[ 0.029054] smp: Bringing up secondary CPUs ...
[ 0.029128] smp: Brought up 1 node, 1 CPU
[ 0.036109] devtmpfs: initialized
[ 0.041159] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.041293] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.044939] NET: Registered protocol family 16
[ 0.085510] vgaarb: loaded
[ 0.086364] SCSI subsystem initialized
[ 0.087587] usbcore: registered new interface driver usbfs
[ 0.087807] usbcore: registered new interface driver hub
[ 0.087910] usbcore: registered new device driver usb
[ 0.095866] clocksource: Switched to clocksource riscv_clocksource
[ 0.106461] NET: Registered protocol family 2
[ 0.109687] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[ 0.110926] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.111209] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[ 0.112195] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.113016] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[ 0.113355] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[ 0.114514] NET: Registered protocol family 1
[ 0.117744] RPC: Registered named UNIX socket transport module.
[ 0.117797] RPC: Registered udp transport module.
[ 0.117812] RPC: Registered tcp transport module.
[ 0.117825] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.117909] PCI: CLS 0 bytes, default 64
[ 0.120124] Unpacking initramfs...
[ 0.842259] Freeing initrd memory: 6332K
[ 0.844543] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[ 0.856180] NFS: Registering the id_resolver key type
[ 0.856788] Key type id_resolver registered
[ 0.856824] Key type id_legacy registered
[ 0.857070] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.857560] 9p: Installing v9fs 9p2000 file system support
[ 0.858506] NET: Registered protocol family 38
[ 0.858704] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.858804] io scheduler mq-deadline registered
[ 0.858862] io scheduler kyber registered
[ 0.864434] pci-host-generic 30000000.pci: host bridge /soc/pci#30000000 ranges:
[ 0.865077] pci-host-generic 30000000.pci: IO 0x0003000000..0x000300ffff -> 0x0000000000
[ 0.865412] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000
[ 0.866661] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff]
[ 0.867495] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00
[ 0.867683] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.867749] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.867803] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[ 0.868668] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[ 0.917700] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.921998] printk: console [ttyS0] disabled
[ 0.923181] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 2, base_baud = 230400) is a 16550A
[ 0.938948] printk: console [ttyS0] enabled
[ 0.940558] [drm] radeon kernel modesetting enabled.
[ 0.952711] loop: module loaded
[ 0.954830] libphy: Fixed MDIO Bus: probed
[ 0.955856] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.955976] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.956330] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.956504] ehci-pci: EHCI PCI platform driver
[ 0.956737] ehci-platform: EHCI generic platform driver
[ 0.956944] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.957153] ohci-pci: OHCI PCI platform driver
[ 0.957374] ohci-platform: OHCI generic platform driver
[ 0.958183] usbcore: registered new interface driver uas
[ 0.958427] usbcore: registered new interface driver usb-storage
[ 0.959096] mousedev: PS/2 mouse device common for all mice
[ 0.961287] goldfish_rtc 101000.rtc: registered as rtc0
[ 0.961750] goldfish_rtc 101000.rtc: setting system clock to 2021-07-20T08:25:12 UTC (1626769512)
[ 0.963529] syscon-poweroff soc:poweroff: pm_power_off already claimed for sbi_shutdown
[ 0.963870] syscon-poweroff: probe of soc:poweroff failed with error -16
[ 0.964728] usbcore: registered new interface driver usbhid
[ 0.964866] usbhid: USB HID core driver
[ 0.966119] NET: Registered protocol family 10
[ 0.973579] Segment Routing with IPv6
[ 0.973959] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.975972] NET: Registered protocol family 17
[ 0.977014] 9pnet: Installing 9P2000 support
[ 0.977341] Key type dns_resolver registered
[ 0.977863] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 1.001918] Freeing unused kernel memory: 2144K
[ 1.007901] Run /init as init process
[ 1.010056] Failed to execute /init (error -2)
[ 1.010204] Run /init as init process
[ 1.010634] Kernel panic - not syncing: Requested init /init failed (error -2).
[ 1.010916] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.11.0 #5
[ 1.011184] Call Trace:
[ 1.011311] [<ffffffe0000047b2>] walk_stackframe+0x0/0xaa
[ 1.011893] ---[ end Kernel panic - not syncing: Requested init /init failed (error -2). ]---
QEMU: Terminated
I think I had that issue in the past. In my case it was because the initramfs was missing the prepended microcode(see more details here: https://wiki.debian.org/initramfs).
I would recommend using buildroot and choose the option that the initramfs is embedded into the kernel Image. Buildroot will prepend that microcode for you.
I am using Intel Joule 570x board for reference which has 64-bit x86 architecture.
I am using GRUB2 as the bootloader and mainline kernel 4.9. I built the kernel, also busybox rootfs and then tested them on qemu and I can boot to shell.
Now I put the kernel bzImage, GRUB and rootfs onto the USB. I have created first partition as FAT and put bzImage and GRUB files there. I created second partition as ext4 and put rootfs files there. Then I plugged it to the development board.
This is my GRUB menuentry :
menuentry "dev kernel" {
set root=(hd0,msdos2)
linux (hd0,msdos1)/bzImage root=/dev/sda console=ttyS2,115200n8 console=tty0
}
The kernel throws error :
VFS: Cannot open root device "sda" or unknown-block(0,0): error -6
Can anyone please help. My USB is also getting detected and I have built all the filesystems (fat,ext4,etc.) into the kernel. The board also has eMMC inbuilt storage and SD card which are also getting detected.
Here are complete boot logs :
Booting a command list
***** skipped some logs ******
[ 0.000000] Kernel command line: BOOT_IMAGE=(hd0,msdos1)/bzImage root=/dev/sda console=ttyS2,115200n8 console=tty0
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] console [ttyS2] enabled
[ 0.015799] Security Framework initialized
[ 0.016158] SELinux: Initializing.
[ 0.242204] smpboot: Total of 4 processors activated (13546.74 BogoMIPS)
[ 0.246269] devtmpfs: initialized
[ 0.246953] PM: Registering ACPI NVS region [mem 0x6b37f000-0x6b3defff] (393216 bytes)
[ 0.247630] PM: Registering ACPI NVS region [mem 0x79dfb000-0x79dfbfff] (4096 bytes)
[ 0.248388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.248473] kworker/u8:0 (30) used greatest stack depth: 14152 bytes left
[ 0.249850] xor: measuring software checksum speed
[ 0.259845] prefetch64-sse: 8832.000 MB/sec
[ 0.269872] generic_sse: 7648.000 MB/sec
[ 0.270243] xor: using function: prefetch64-sse (8832.000 MB/sec)
[ 0.271541] NET: Registered protocol family 16
[ 0.277997] cpuidle: using governor menu
[ 0.278437] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[ 0.279093] ACPI: bus type PCI registered
[ 0.279549] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000)
[ 0.280348] PCI: MMCONFIG at [mem 0xe0000000-0xe3ffffff] reserved in E820
[ 0.280934] PCI: Using configuration type 1 for base access
[ 0.292840] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.310540] raid6: sse2x1 gen() 3921 MB/s
[ 0.327606] raid6: sse2x1 xor() 2253 MB/s
[ 0.344647] raid6: sse2x2 gen() 4289 MB/s
[ 0.361691] raid6: sse2x2 xor() 2619 MB/s
[ 0.378739] raid6: sse2x4 gen() 4894 MB/s
[ 0.395767] raid6: sse2x4 xor() 2271 MB/s
[ 0.396143] raid6: using algorithm sse2x4 gen() 4894 MB/s
[ 0.396610] raid6: .... xor() 2271 MB/s, rmw enabled
[ 0.397042] raid6: using ssse3x2 recovery algorithm
[ 0.397511] ACPI: Added _OSI(Module Device)
[ 0.397880] ACPI: Added _OSI(Processor Device)
[ 0.398282] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.398688] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.400181] ACPI: Executed 5 blocks of module-level executable AML code
[ 0.410040] ACPI: Dynamic OEM Table Load:
[ 0.410450] ACPI: SSDT 0xFFFF88017A5E0000 000102 (v02 PmRef Cpu0Cst 00003001 INTL 20150818)
[ 0.411738] ACPI: Dynamic OEM Table Load:
[ 0.412123] ACPI: SSDT 0xFFFF88017A5E0200 00015F (v02 PmRef ApIst 00003000 INTL 20150818)
[ 0.413186] ACPI: Dynamic OEM Table Load:
[ 0.413575] ACPI: SSDT 0xFFFF88017A4A4300 00008D (v02 PmRef ApCst 00003000 INTL 20150818)
[ 0.416052] ACPI: Interpreter enabled
[ 0.416421] ACPI: (supports S0 S4 S5)
[ 0.416744] ACPI: Using IOAPIC for interrupt routing
[ 0.417228] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.418946] ACPI: Power Resource [PXP] (on)
[ 0.438938] ACPI: Power Resource [PXP] (on)
[ 0.461403] ACPI: Power Resource [VANA] (off)
[ 0.461852] ACPI: Power Resource [VDIG] (off)
[ 0.462292] ACPI: Power Resource [VAF] (off)
[ 0.462724] ACPI: Power Resource [VIO] (off)
[ 0.463802] ACPI: Power Resource [VANA] (off)
[ 0.464247] ACPI: Power Resource [VDIG] (off)
[ 0.464697] ACPI: Power Resource [VAF] (off)
[ 0.475093] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.475644] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.476959] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 0.477652] acpi PNP0A08:00: FADT indicates ASPM is unsupported, using BIOS configuration
[ 0.478372] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 0.479434] PCI host bridge to bus 0000:00
[ 0.479800] pci_bus 0000:00: root bus resource [io 0x0070-0x0077]
[ 0.480337] pci_bus 0000:00: root bus resource [io 0x0000-0x006f window]
[ 0.480906] pci_bus 0000:00: root bus resource [io 0x0078-0x03ff window]
[ 0.481497] pci_bus 0000:00: root bus resource [io 0x0480-0x0cf7 window]
[ 0.482077] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.482669] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.483315] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff window]
[ 0.483961] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000fffff window]
[ 0.484602] pci_bus 0000:00: root bus resource [mem 0x7c000001-0x7fffffff window]
[ 0.485249] pci_bus 0000:00: root bus resource [mem 0x80000000-0xcfffffff window]
[ 0.485893] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.488151] pci 0000:00:0e.0: System wakeup disabled by ACPI
[ 0.489539] pci 0000:00:14.0: System wakeup disabled by ACPI
[ 0.490419] pci 0000:00:15.0: System wakeup disabled by ACPI
[ 0.491315] pci 0000:00:15.1: System wakeup disabled by ACPI
[ 0.498775] pci 0000:01:00.0: can't set Max Payload Size to 256; if necessary, use "pci=pcie_bus_safe" and report a bug
[ 0.502772] pci 0000:00:14.0: PCI bridge to [bus 01]
[ 0.507965] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.508456] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.509162] vgaarb: loaded
[ 0.509402] vgaarb: bridge control possible 0000:00:02.0
[ 0.509968] SCSI subsystem initialized
[ 0.510441] ACPI: bus type USB registered
[ 0.510832] usbcore: registered new interface driver usbfs
[ 0.511334] usbcore: registered new interface driver hub
[ 0.511827] usbcore: registered new device driver usb
[ 0.512296] pps_core: LinuxPPS API ver. 1 registered
[ 0.512732] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti#linux.it>
[ 0.513514] PTP clock support registered
[ 0.513999] Registered efivars operations
[ 0.523720] Advanced Linux Sound Architecture Driver Initialized.
[ 0.524267] PCI: Using ACPI for IRQ routing
[ 0.532269] NetLabel: Initializing
[ 0.532578] NetLabel: domain hash size = 128
[ 0.532962] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.533415] NetLabel: unlabeled traffic allowed by default
[ 0.534085] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.534762] hpet0: 8 comparators, 64-bit 19.200000 MHz counter
[ 0.537347] clocksource: Switched to clocksource hpet
[ 0.553394] VFS: Disk quotas dquot_6.6.0
[ 0.553771] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.554515] pnp: PnP ACPI init
[ 0.555748] system 00:01: [mem 0xe0000000-0xefffffff] could not be reserved
[ 0.556332] system 00:01: [mem 0xfea00000-0xfeafffff] has been reserved
[ 0.556916] system 00:01: [mem 0xfed01000-0xfed01fff] has been reserved
[ 0.557497] system 00:01: [mem 0xfed03000-0xfed03fff] has been reserved
[ 0.558063] system 00:01: [mem 0xfed06000-0xfed06fff] has been reserved
[ 0.558643] system 00:01: [mem 0xfed08000-0xfed09fff] has been reserved
[ 0.559204] system 00:01: [mem 0xfed80000-0xfedbffff] has been reserved
[ 0.559785] system 00:01: [mem 0xfed1c000-0xfed1cfff] has been reserved
[ 0.560369] system 00:01: [mem 0xfee00000-0xfeefffff] has been reserved
[ 0.561681] pnp: PnP ACPI: found 2 devices
[ 0.569529] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.570326] pci 0000:00:14.0: PCI bridge to [bus 01]
[ 0.570783] pci 0000:00:14.0: bridge window [mem 0x92300000-0x923fffff]
[ 0.571552] NET: Registered protocol family 2
[ 0.572212] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.573027] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.573840] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.574456] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.575016] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.575678] NET: Registered protocol family 1
[ 0.576271] RPC: Registered named UNIX socket transport module.
[ 0.576794] RPC: Registered udp transport module.
[ 0.577198] RPC: Registered tcp transport module.
[ 0.577606] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.578178] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[ 0.579432] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.579993] software IO TLB [mem 0x74c1e000-0x78c1e000] (64MB) mapped at [ffff880074c1e000-ffff880078c1dfff]
[ 0.580989] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer
[ 0.581689] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[ 0.582183] RAPL PMU: hw unit of domain package 2^-14 Joules
[ 0.582677] RAPL PMU: hw unit of domain dram 2^-14 Joules
[ 0.583142] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[ 0.583722] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.585081] Scanning for low memory corruption every 60 seconds
[ 0.585994] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.586557] audit: initializing netlink subsys (disabled)
[ 0.587039] audit: type=2000 audit(1484314800.570:1): initialized
[ 0.588155] workingset: timestamp_bits=56 max_order=20 bucket_order=0
[ 0.592463] NFS: Registering the id_resolver key type
[ 0.592898] Key type id_resolver registered
[ 0.593265] Key type id_legacy registered
[ 0.593644] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.594218] JFS: nTxBlock = 8192, nTxLock = 65536
[ 0.596833] SGI XFS with security attributes, no debug enabled
[ 0.601391] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.602011] io scheduler noop registered
[ 0.602371] io scheduler deadline registered
[ 0.602751] io scheduler cfq registered (default)
[ 0.603678] pcieport 0000:00:14.0: Signaling PME through PCIe PME interrupt
[ 0.604267] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[ 0.604860] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.605387] efifb: probing for efifb
[ 0.605720] efifb: framebuffer at 0x80000000, using 9024k, total 9024k
[ 0.606275] efifb: mode is 1920x1200x32, linelength=7680, pages=1
[ 0.606810] efifb: scrolling: redraw
[ 0.607127] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 0.618555] Console: switching to colour frame buffer device 240x75
[ 0.629275] fb0: EFI VGA frame buffer device
[ 0.632973] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.634649] Non-volatile memory driver v1.3
[ 0.635135] Linux agpgart interface v0.103
[ 0.635802] [drm] Initialized
[ 0.636841] [drm] Memory usable by graphics device = 4096M
[ 0.637386] fb: switching to inteldrmfb from EFI VGA
[ 0.637881] Console: switching to colour dummy device 80x25
[ 0.638524] [drm] Replacing VGA console driver
[ 0.639396] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.639960] [drm] Driver supports precise vblank timestamp query.
[ 0.642553] i915 0000:00:02.0: Direct firmware load for i915/bxt_dmc_ver1_07.bin failed with error -2
[ 0.643336] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling runtime power management.
[ 0.644923] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 1.630958] [drm] failed to retrieve link info, disabling eDP
[ 1.633466] [drm] GuC firmware load skipped
[ 1.646479] tsc: Refined TSC clocksource calibration: 1689.599 MHz
[ 1.647029] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x185ac5ca321, max_idle_ns: 440795231783 ns
[ 1.650989] random: fast init done
[ 1.770721] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 1.772107] acpi device:44: registered as cooling_device4
[ 1.772677] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input0
[ 1.773505] [drm] Initialized i915 1.6.0 20160919 for 0000:00:02.0 on minor 0
[ 1.777433] loop: module loaded
[ 1.781332] dw-apb-uart.8: ttyS0 at MMIO 0x92430000 (irq = 4, base_baud = 460800) is a 16550A
[ 1.782696] dw-apb-uart.9: ttyS1 at MMIO 0x92432000 (irq = 5, base_baud = 460800) is a 16550A
[ 1.784122] console [ttyS2] disabled
[ 1.784477] dw-apb-uart.10: ttyS2 at MMIO 0x92434000 (irq = 6, base_baud = 460800) is a 16550A
[ 2.661355] clocksource: Switched to clocksource tsc
[ 2.741029] [drm] RC6 on
[ 4.303847] console [ttyS2] enabled
[ 4.303914] fbcon: inteldrmfb (fb0) is primary device
[ 4.304411] dw-apb-uart.11: ttyS3 at MMIO 0x92436000 (irq = 7, base_baud = 460800) is a 16550A
[ 4.305851] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[ 4.305851] e100: Copyright(c) 1999-2006 Intel Corporation
[ 4.305874] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 4.305875] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 4.305897] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 4.305898] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 4.305930] sky2: driver version 1.30
[ 4.306203] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.306204] ehci-pci: EHCI PCI platform driver
[ 4.306228] ehci-platform: EHCI generic platform driver
[ 4.306271] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.306277] ohci-pci: OHCI PCI platform driver
[ 4.306297] ohci-platform: OHCI generic platform driver
[ 4.306319] uhci_hcd: USB Universal Host Controller Interface driver
[ 4.306525] xhci_hcd 0000:00:15.0: xHCI Host Controller
[ 4.306654] xhci_hcd 0000:00:15.0: new USB bus registered, assigned bus number 1
[ 4.307770] xhci_hcd 0000:00:15.0: hcc params 0x200077c1 hci version 0x100 quirks 0x00109810
[ 4.307926] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 4.307929] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.307931] usb usb1: Product: xHCI Host Controller
[ 4.307933] usb usb1: Manufacturer: Linux 4.9.0 xhci-hcd
[ 4.307934] usb usb1: SerialNumber: 0000:00:15.0
[ 4.308296] hub 1-0:1.0: USB hub found
[ 4.308311] hub 1-0:1.0: 4 ports detected
[ 4.308764] xhci_hcd 0000:00:15.0: xHCI Host Controller
[ 4.308974] xhci_hcd 0000:00:15.0: new USB bus registered, assigned bus number 2
[ 4.309029] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 4.309031] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.309033] usb usb2: Product: xHCI Host Controller
[ 4.309034] usb usb2: Manufacturer: Linux 4.9.0 xhci-hcd
[ 4.309036] usb usb2: SerialNumber: 0000:00:15.0
[ 4.309285] hub 2-0:1.0: USB hub found
[ 4.309298] hub 2-0:1.0: 4 ports detected
[ 4.309516] usb: port power management may be unreliable
[ 4.309781] usbcore: registered new interface driver usblp
[ 4.309807] usbcore: registered new interface driver usb-storage
[ 4.309820] usbcore: registered new interface driver ums-realtek
[ 4.309830] usbcore: registered new interface driver ums-usbat
[ 4.309868] usbcore: registered new interface driver usbserial
[ 4.309881] usbcore: registered new interface driver usbserial_generic
[ 4.309892] usbserial: USB Serial support registered for generic
[ 4.309904] usbcore: registered new interface driver pl2303
[ 4.309914] usbserial: USB Serial support registered for pl2303
[ 4.309918] usbip_core: USB/IP Core v1.0.0
[ 4.310062] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 5.408427] i8042: No controller found
[ 5.408691] mousedev: PS/2 mouse device common for all mice
[ 5.408905] ACPI Error: Could not enable RealTimeClock event (20160831/evxfevnt-212)
[ 5.408908] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20160831/evxface-654)
[ 5.409640] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 5.409788] rtc_cmos rtc_cmos: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[ 5.410003] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel#redhat.com
[ 5.410018] sdhci: Secure Digital Host Controller Interface driver
[ 5.410019] sdhci: Copyright(c) Pierre Ossman
[ 5.410042] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:1aca] (rev c)
[ 5.410256] sdhci-pci 0000:00:1b.0: failed to setup card detect gpio
[ 5.416566] mmc0: SDHCI controller on PCI [0000:00:1b.0] using ADMA 64-bit
[ 5.416651] sdhci-pci 0000:00:1c.0: SDHCI controller found [8086:1acc] (rev c)
[ 5.423563] mmc1: SDHCI controller on PCI [0000:00:1c.0] using ADMA 64-bit
[ 5.423788] usbcore: registered new interface driver ushc
[ 5.423790] EFI Variables Facility v0.08 2004-May-17
[ 5.436816] hidraw: raw HID events driver (C) Jiri Kosina
[ 5.437175] usbcore: registered new interface driver usbhid
[ 5.437176] usbhid: USB HID core driver
[ 5.438050] Netfilter messages via NETLINK v0.30.
[ 5.438166] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 5.438245] ctnetlink v0.93: registering with nfnetlink.
[ 5.438672] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.438701] Initializing XFRM netlink socket
[ 5.438882] NET: Registered protocol family 10
[ 5.439222] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 5.439375] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 5.439591] NET: Registered protocol family 17
[ 5.439622] Key type dns_resolver registered
[ 5.439970] microcode: sig=0x506c2, pf=0x1, revision=0xa
[ 5.440066] microcode: Microcode Update Driver: v2.01 <tigran#aivazian.fsnet.co.uk>, Peter Oruba
[ 5.440268] registered taskstats version 1
[ 5.440823] Btrfs loaded, crc32c=crc32c-generic
[ 5.443436] snd_hda_intel 0000:00:0e.0: bound 0000:00:02.0 (ops 0xffffffff81ca3980)
[ 5.445136] Magic number: 1:456:685
[ 5.445177] misc nvram: hash matches
[ 5.445186] clocksource: hash matches
[ 5.447584] hdaudio hdaudioC0D1: Unable to bind the codec
[ 5.454231] Console: switching to colour frame buffer device 240x75
[ 5.541996] mmc0: new high speed SDHC card at address 1234
[ 5.542391] mmcblk0: mmc0:1234 SA16G 14.4 GiB
[ 5.544015] mmcblk0: p1
[ 5.595442] mmc1: new HS400 MMC card at address 0001
[ 5.595700] mmcblk1: mmc1:0001 016G32 14.7 GiB
[ 5.595787] mmcblk1boot0: mmc1:0001 016G32 partition 1 4.00 MiB
[ 5.595885] mmcblk1boot1: mmc1:0001 016G32 partition 2 4.00 MiB
[ 5.595970] mmcblk1gp0: mmc1:0001 016G32 partition 4 4.00 MiB
[ 5.596058] mmcblk1gp3: mmc1:0001 016G32 partition 7 4.00 MiB
[ 5.596144] mmcblk1rpmb: mmc1:0001 016G32 partition 3 4.00 MiB
[ 5.598227] mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
[ 5.630221] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 5.699723] usb 2-2: New USB device found, idVendor=8564, idProduct=4100
[ 5.699726] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.699728] usb 2-2: Product: USB3.0 Hub
[ 5.699730] usb 2-2: Manufacturer: Transcend Info
[ 5.768362] hub 2-2:1.0: USB hub found
[ 5.775377] hub 2-2:1.0: 4 ports detected
[ 5.845170] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[ 6.079121] usb 1-2: New USB device found, idVendor=8564, idProduct=4100
[ 6.079123] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6.079125] usb 1-2: Product: USB2.0 Hub
[ 6.079127] usb 1-2: Manufacturer: Transcend Info
[ 6.102982] hub 1-2:1.0: USB hub found
[ 6.109513] hub 1-2:1.0: 4 ports detected
[ 6.283504] usb 2-2.1: new SuperSpeed USB device number 3 using xhci_hcd
[ 6.341416] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 6.342103] usb 2-2.1: New USB device found, idVendor=0781, idProduct=558a
[ 6.342106] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6.342107] usb 2-2.1: Product: Ultra
[ 6.342109] usb 2-2.1: Manufacturer: SanDisk
[ 6.342111] usb 2-2.1: SerialNumber: 4C531003550621112474
[ 6.343651] usb-storage 2-2.1:1.0: USB Mass Storage device detected
[ 6.343924] scsi host0: usb-storage 2-2.1:1.0
[ 6.410171] console [netcon0] enabled
[ 6.416562] netconsole: network logging started
[ 6.425391] ALSA device list:
[ 6.430970] #0: HDA Intel PCH at 0x92418000 irq 123
[ 6.439041] ttyS2 - failed to request DMA
[ 6.445806] md: Waiting for all devices to be available before autodetect
[ 6.455660] md: If you don't use raid, use raid=noautodetect
[ 6.465021] md: Autodetecting RAID arrays.
[ 6.471909] md: Scanned 0 and added 0 devices.
[ 6.479114] md: autorun ...
[ 6.484438] md: ... autorun DONE.
[ 6.487454] usb 1-3: new full-speed USB device number 3 using xhci_hcd
[ 6.499997] VFS: Cannot open root device "sda" or unknown-block(0,0): error -6
[ 6.510294] Please append a correct "root=" boot option; here are the available partitions:
[ 6.521895] b300 15126528 mmcblk0 [ 6.526210] driver: mmcblk
[ 6.531575] b301 15125504 mmcblk0p1 00000000-01[ 6.537358]
[ 6.541264] b308 15380480 mmcblk1 [ 6.545579] driver: mmcblk
[ 6.550953] b309 61440 mmcblk1p1 fb5f2fd1-926e-4824-9bd3-d7cdfc5a9484[ 6.559176]
[ 6.563100] b30a 60417 mmcblk1p2 51237339-1727-41c2-9dfe-3a48de708967[ 6.571321]
[ 6.575246] b30b 29697 mmcblk1p3 e26cbdbe-958c-4813-813e-a580aab236cc[ 6.583468]
[ 6.587399] b30c 29698 mmcblk1p4 d1b1361a-54eb-4cc5-8584-09e3dd161317[ 6.595613]
[ 6.599554] b30d 2 mmcblk1p5 ea2de08a-21d6-422a-b333-bbeb01074d91[ 6.607778]
[ 6.611719] b30e 15363 mmcblk1p6 a85e7cf4-b662-4448-aa75-6aaae46c4457[ 6.619962]
[ 6.623925] b30f 3668995 mmcblk1p7 fcca825b-7dcb-41d2-81d9-b430ae829b12[ 6.632149]
[ 6.636100] 103:00000 101380 mmcblk1p8 ba14eaf1-4002-412e-a21c-5d75901ac87c[ 6.644322]
[ 6.648287] 103:00001 4 mmcblk1p9 4c4a2cac-4fdb-4428-8b8c-4a4a21533a6e[ 6.656501]
[ 6.660461] 103:00002 1534981 mmcblk1p10 7f9c6212-42e8-4037-af65-63fa74ad54f5[ 6.668783]
[ 6.672747] 103:00003 7173 mmcblk1p11 b8a54634-b3ff-4383-87fc-ec234e30cc23[ 6.681059]
[ 6.685009] 103:00004 9222 mmcblk1p12 0f9c8abc-bfbd-4d70-866b-0d2a646d35c9[ 6.693329]
[ 6.697300] 103:00005 9848815 mmcblk1p13 0c0de561-b34b-4244-aff6-3b445acd6ded[ 6.705621]
[ 6.709552] b330 4096 mmcblk1rpmb [ 6.714259] (driver?)
[ 6.719197] b328 4096 mmcblk1gp3 [ 6.723806] (driver?)
[ 6.728745] b320 4096 mmcblk1gp0 [ 6.733355] (driver?)
[ 6.738279] b318 4096 mmcblk1boot1 [ 6.743082] (driver?)
[ 6.747996] b310 4096 mmcblk1boot0 [ 6.752799] (driver?)
[ 6.757685] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.769245] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.9.0 #6
[ 6.778067] Hardware name: Intel Corp. Joule DVT2/SDS, BIOS GTPP181A.X64.0143.B30.1701132137 01/13/2017
[ 6.790929] ffffc90000653dd8 ffffffff814c97df 0000000000008000 ffffffff81dd8f78
[ 6.801611] ffffc90000653e50 ffffffff81123cfb ffff880100000010 ffffc90000653e60
[ 6.812325] ffffc90000653e00 62316b6c62636d6d ffffc90000653e68 0000000000000001
[ 6.823005] Call Trace:
[ 6.828132] [<ffffffff814c97df>] dump_stack+0x4d/0x6e
[ 6.836281] [<ffffffff81123cfb>] panic+0xd0/0x20e
[ 6.844032] [<ffffffff8218a4ac>] mount_block_root+0x182/0x23c
[ 6.852976] [<ffffffff8218a66b>] mount_root+0x105/0x10e
[ 6.861297] [<ffffffff8218a7b0>] prepare_namespace+0x13c/0x174
[ 6.870323] [<ffffffff8218a1de>] kernel_init_freeable+0x1ce/0x1e1
[ 6.879617] [<ffffffff82189933>] ? set_debug_rodata+0x12/0x12
[ 6.888526] [<ffffffff81ae56b0>] ? rest_init+0x80/0x80
[ 6.896736] [<ffffffff81ae56b9>] kernel_init+0x9/0x100
[ 6.904956] [<ffffffff81aeb192>] ret_from_fork+0x22/0x30
[ 6.913423] Kernel Offset: disabled
[ 6.919701] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.932266] ------------[ cut here ]------------
[ 6.939850] WARNING: CPU: 3 PID: 1 at arch/x86/kernel/smp.c:127 native_smp_send_reschedule+0x3a/0x40
[ 6.952542] Modules linked in:
[ 6.958438] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.9.0 #6
[ 6.967461] Hardware name: Intel Corp. Joule DVT2/SDS, BIOS GTPP181A.X64.0143.B30.1701132137 01/13/2017
[ 6.980529] ffff88017fd83e10 ffffffff814c97df 0000000000000000 0000000000000000
[ 6.991430] ffff88017fd83e50 ffffffff81058f4c 0000007f7fd97820 0000000000000000
[ 7.002301] 0000000000000003 00000000fffb8712 ffff88017ab58000 ffff88017fd911e8
[ 7.013163] Call Trace:
[ 7.018427] <IRQ> [ 7.020578] [<ffffffff814c97df>] dump_stack+0x4d/0x6e
[ 7.028889] [<ffffffff81058f4c>] __warn+0xcc/0xf0
[ 7.036832] [<ffffffff81059028>] warn_slowpath_null+0x18/0x20
[ 7.045953] [<ffffffff8103b37a>] native_smp_send_reschedule+0x3a/0x40
[ 7.055865] [<ffffffff8108e9d4>] trigger_load_balance+0x104/0x1a0
[ 7.065380] [<ffffffff81080bd7>] scheduler_tick+0x97/0xc0
[ 7.074105] [<ffffffff810c4210>] ? tick_sched_do_timer+0x30/0x30
[ 7.083519] [<ffffffff810b5792>] update_process_times+0x42/0x50
[ 7.092833] [<ffffffff810c3c71>] tick_sched_handle.isra.13+0x31/0x40
[ 7.102642] [<ffffffff810c4248>] tick_sched_timer+0x38/0x70
[ 7.111524] [<ffffffff810b638a>] __hrtimer_run_queues+0xda/0x250
[ 7.120932] [<ffffffff810b67d3>] hrtimer_interrupt+0xa3/0x190
[ 7.130032] [<ffffffff8103d650>] local_apic_timer_interrupt+0x30/0x60
[ 7.139903] [<ffffffff8103e138>] smp_apic_timer_interrupt+0x38/0x50
[ 7.149575] [<ffffffff81aebb2f>] apic_timer_interrupt+0x7f/0x90
[ 7.158861] <EOI> [ 7.161023] [<ffffffff81123e00>] ? panic+0x1d5/0x20e
[ 7.169257] [<ffffffff81123dfc>] ? panic+0x1d1/0x20e
[ 7.177497] [<ffffffff8218a4ac>] mount_block_root+0x182/0x23c
[ 7.186601] [<ffffffff8218a66b>] mount_root+0x105/0x10e
[ 7.195091] [<ffffffff8218a7b0>] prepare_namespace+0x13c/0x174
[ 7.204259] [<ffffffff8218a1de>] kernel_init_freeable+0x1ce/0x1e1
[ 7.213699] [<ffffffff82189933>] ? set_debug_rodata+0x12/0x12
[ 7.222734] [<ffffffff81ae56b0>] ? rest_init+0x80/0x80
[ 7.231073] [<ffffffff81ae56b9>] kernel_init+0x9/0x100
[ 7.239378] [<ffffffff81aeb192>] ret_from_fork+0x22/0x30
[ 7.247868] ---[ end trace 9dc963ca26f1cf14 ]---
EDIT
One strage behaviour I have noticed, if I pass kernel parameter from GRUB2 as /dev/sdb, then the kernel shows sda1 and sda2 as the available partitions, with same error.
Kernel Config file : https://pastebin.com/twi9Deis
The solution is to add "rootwait" to the kernel commandline. The USB pendrive needs a little time to be recognized so the kernel need to wait for it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am working with Beaglebone black device
Trying to have my own compiled Kernel and my own rootfs.
I want to avoid using modules in the kernel, and trying to activate the kernel so it will recognize when I plug in FTDI device to the USB Host.
What is the required kernel configuration items for that? Do I need also to change the DTS file?
It looks I do have the driver since I can see the "usb-serial" when I do "cat /proc/devices", it just that I don't get the device detection.
Here is my dmesg - What do I miss?
`~ # dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.75 (avner#OZC-ThinkPad-E460) (gcc version 4.9.2 (GCC) ) #5 PREEMPT Sun Mar 18 22:41:53 IST 2018
[ 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 AM335x BeagleBone Black
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0d48df8, node_mem_map dcb61000
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=ab08c094-02 rw rootfstype=ext4 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: 456928K/524288K available (8192K kernel code, 301K rwdata, 2476K rodata, 1024K init, 281K bss, 18208K 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 : 0xc0008000 - 0xc0900000 (9184 kB)
[ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
[ 0.000000] .data : 0xc0d00000 - 0xc0d4b618 ( 302 kB)
[ 0.000000] .bss : 0xc0d4b618 - 0xc0d91a8c ( 282 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000029] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000039] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000182] clocksource_probe: no matching clocksources found
[ 0.000347] Console: colour dummy device 80x30
[ 0.000370] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000375] This ensures that you still see kernel messages. Please
[ 0.000380] update your kernel commandline.
[ 0.000399] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089251] pid_max: default: 32768 minimum: 301
[ 0.089372] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089382] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090090] CPU: Testing write buffer coherency: ok
[ 0.090429] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.091153] EFI services will not be available.
[ 0.092307] devtmpfs: initialized
[ 0.102473] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.102806] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.102830] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.106099] pinctrl core: initialized pinctrl subsystem
[ 0.107204] NET: Registered protocol family 16
[ 0.108915] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.121642] omap_hwmod: debugss: _wait_target_disable failed
[ 0.199240] cpuidle: using governor ladder
[ 0.229230] cpuidle: using governor menu
[ 0.233029] gpio gpiochip0: (gpio): added GPIO chardev (254:0)
[ 0.233371] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio)
[ 0.234644] OMAP GPIO hardware version 0.1
[ 0.235378] gpio gpiochip1: (gpio): added GPIO chardev (254:1)
[ 0.235660] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio)
[ 0.237375] gpio gpiochip2: (gpio): added GPIO chardev (254:2)
[ 0.237731] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio)
[ 0.239541] gpio gpiochip3: (gpio): added GPIO chardev (254:3)
[ 0.239817] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio)
[ 0.248090] No ATAGs?
[ 0.248114] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.286467] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.286768] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator0[0]'
[ 0.289199] SCSI subsystem initialized
[ 0.289607] libata version 3.00 loaded.
[ 0.289886] usbcore: registered new interface driver usbfs
[ 0.289960] usbcore: registered new interface driver hub
[ 0.290038] usbcore: registered new device driver usb
[ 0.290398] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup#44c00000/scm#210000/pinmux#800/pinmux_i2c0_pins, deferring probe
[ 0.290444] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup#44c00000/scm#210000/pinmux#800/pinmux_i2c2_pins, deferring probe
[ 0.290544] media: Linux media interface: v0.10
[ 0.290591] Linux video capture interface: v2.00
[ 0.290627] pps_core: LinuxPPS API ver. 1 registered
[ 0.290634] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti#linux.it>
[ 0.290653] PTP clock support registered
[ 0.290687] EDAC MC: Ver: 3.0.0
[ 0.291628] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.291916] Advanced Linux Sound Architecture Driver Initialized.
[ 0.293082] clocksource: Switched to clocksource timer1
[ 0.302195] NET: Registered protocol family 2
[ 0.302892] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.302939] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.302977] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.303038] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.303054] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.303234] NET: Registered protocol family 1
[ 0.303630] RPC: Registered named UNIX socket transport module.
[ 0.303640] RPC: Registered udp transport module.
[ 0.303645] RPC: Registered tcp transport module.
[ 0.303650] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.303661] PCI: CLS 0 bytes, default 64
[ 0.304498] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.306550] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.313411] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.314242] NFS: Registering the id_resolver key type
[ 0.314281] Key type id_resolver registered
[ 0.314287] Key type id_legacy registered
[ 0.314328] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.316004] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.316022] io scheduler noop registered
[ 0.316029] io scheduler deadline registered
[ 0.316167] io scheduler cfq registered (default)
[ 0.317342] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.318866] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/clk_mcasp0[0]' - status (0)
[ 0.371661] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.375222] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 0.986647] console [ttyS0] enabled
[ 0.991699] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 0.998514] [drm] Initialized
[ 1.013277] brd: module loaded
[ 1.021985] loop: module loaded
[ 1.027168] libphy: Fixed MDIO Bus: probed
[ 1.103158] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.109297] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.116434] libphy: 4a101000.mdio: probed
[ 1.120476] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.130383] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:b5:f6:fe
[ 1.138534] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.145246] ehci-pci: EHCI PCI platform driver
[ 1.149802] ehci-platform: EHCI generic platform driver
[ 1.155258] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.160597] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.166881] ohci-platform: OHCI generic platform driver
[ 1.172327] usbcore: registered new interface driver usb-storage
[ 1.178496] usbcore: registered new interface driver usbserial
[ 1.184408] usbcore: registered new interface driver usbserial_generic
[ 1.190996] usbserial: USB Serial support registered for generic
[ 1.197073] usbcore: registered new interface driver ftdi_sio
[ 1.202870] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.210713] mousedev: PS/2 mouse device common for all mice
[ 1.216667] i2c /dev entries driver
[ 1.221376] /cpus/cpu#0: unsupported enable-method property: ti,am3352
[ 1.228169] CPUidle arm: CPU 0 failed to init idle CPU ops
[ 1.234379] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
[ 1.234388] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
[ 1.234411] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc#48060000[0]' - status (0)
[ 1.234473] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.239119] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
[ 1.239124] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
[ 1.239130] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc#48060000[0]'
[ 1.239135] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc#48060000[0]'
[ 1.239140] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
[ 1.239147] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
[ 1.293627] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
[ 1.293638] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
[ 1.293646] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc#481d8000[0]'
[ 1.293652] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc#481d8000[0]'
[ 1.293657] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
[ 1.293662] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
[ 1.293669] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
[ 1.293674] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
[ 1.293678] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc#481d8000[0]'
[ 1.293683] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc#481d8000[0]'
[ 1.293688] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
[ 1.293768] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
[ 1.353552] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led2[0]' - status (0)
[ 1.353720] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led3[0]' - status (0)
[ 1.353841] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led4[0]' - status (0)
[ 1.353939] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led5[0]' - status (0)
[ 1.354305] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.366458] NET: Registered protocol family 10
[ 1.372155] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.379129] NET: Registered protocol family 17
[ 1.383963] Key type dns_resolver registered
[ 1.388489] omap_voltage_late_init: Voltage driver support not added
[ 1.408210] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.422583] mmc0: new high speed SDHC card at address aaaa
[ 1.428797] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.437325] random: fast init done
[ 1.441165] mmcblk0: p1 p2
[ 1.447772] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.453819] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.461592] mmc1: new high speed MMC card at address 0001
[ 1.468607] mmcblk1: mmc1:0001 M62704 3.56 GiB
[ 1.473519] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB
[ 1.479716] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB
[ 1.486999] mmcblk1: p1
[ 1.605393] tda998x 0-0070: found TDA19988
[ 1.610856] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[ 1.616953] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.623608] [drm] No driver support for vblank timestamp query.
[ 1.629869] tilcdc 4830e000.lcdc: No connectors reported connected with modes
[ 1.637078] [drm] Cannot find any crtc or sizes - going 1024x768
[ 1.651196] Console: switching to colour frame buffer device 128x48
[ 1.662392] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.693112] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 1.699040] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.823914] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.831120] hctosys: unable to open rtc device (rtc0)
[ 1.836809] ALSA device list:
[ 1.839801] No soundcards found.
[ 1.897085] EXT4-fs (mmcblk0p2): recovery complete
[ 1.902983] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.911223] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.922864] devtmpfs: mounted
[ 1.927115] Freeing unused kernel memory: 1024K
[ 2.306710] export_store: invalid GPIO 246
~ # `
Thanks
Avner
I have resolved this issue (Thanks to TI support):
Use arch/arm/configs/tisdk_am335x-evm_defconfig as the base config - copy it to .config
run "make config"
remove "Enable loadable module support"
Then:
Device Drivers ---> [*] USB support ---> <*> USB Serial Converter support ---> USB FTDI Single Port Serial Driver <*>
Save and Exit, and build the kernel
Use "am335x-boneblack.dts" for DTB
I am using this kernel and dtb with my own rootfs and it identify FTDI device connect
Good Luck
Avner