求大神路过
BSP启动内核卡在这里是什么问题
Waiting for root device /dev/mmcblk0p2...
我的根文件系统运行主线Linux没问题
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (z@z) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 Fri Apr 20 11:18 CST 2018
[ 0.000000] Initialized persistent memory from 41d20800-41d307ff
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 30344k/30344k available, 35192k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc047e000 (4568 kB)
[ 0.000000] .init : 0xc047e000 - 0xc04a1000 ( 140 kB)
[ 0.000000] .data : 0xc04a2000 - 0xc04ee310 ( 305 kB)
[ 0.000000] .bss : 0xc04ee334 - 0xc05890cd ( 620 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000280] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.000329] pid_max: default: 32768 minimum: 301
[ 0.000595] Mount-cache hash table entries: 512
[ 0.001543] CPU: Testing write buffer coherency: ok
[ 0.001922] Setting up static identity map for 0x403565b8 - 0x40356610
[ 0.003063] devtmpfs: initialized
[ 0.006442] pinctrl core: initialized pinctrl subsystem
[ 0.007253] NET: Registered protocol family 16
[ 0.007754] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.007851] script_sysfs_init success
[ 0.009441] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.011424] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.012060] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.013681] persistent_ram: uncorrectable error in header
[ 0.013714] persistent_ram: no valid data in buffer (sig = 0x55155517)
[ 0.029218] console [ram-1] enabled
[ 0.030779] Not Found clk pll_isp in script
[ 0.031078] Not Found clk pll_video in script
[ 0.031613] Not Found clk pll_ve in script
[ 0.031903] Not Found clk pll_periph0 in script
[ 0.032433] Not Found clk pll_de in script
[ 0.040860] bio: create slab <bio-0> at 0
[ 0.041572] pwm module init!
[ 0.046058] SCSI subsystem initialized
[ 0.046774] usbcore: registered new interface driver usbfs
[ 0.047217] usbcore: registered new interface driver hub
[ 0.047966] usbcore: registered new device driver usb
[ 0.048488] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.049034] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.068323] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 0.087068] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 0.105804] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 0.106214] axp20_board 0-0034: failed reading at 0x03
[ 0.106803] axp20_board: probe of 0-0034 failed with error -121
[ 0.107169] Linux video capture interface: v2.00
[ 0.107894] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.108812] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.110583] Switching to clocksource arch_sys_counter
[ 0.129143] NET: Registered protocol family 2
[ 0.130222] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.131244] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.131871] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.132214] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.132747] TCP: reno registered
[ 0.133041] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.133598] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.134386] NET: Registered protocol family 1
[ 0.135516] standby_mode = 1.
[ 0.135810] wakeup src cnt is : 3.
[ 0.136133] pmu1_enable = 0x1.
[ 0.136665] pmux_id = 0x1.
[ 0.136975] config_pmux_para: script_parser_fetch err.
[ 0.137262] pmu2_enable = 0x0.
[ 0.137796] add_sys_pwr_dm: get ldo name failed
[ 0.138085] add_sys_pwr_dm: get ldo name failed
[ 0.138375] add_sys_pwr_dm: get ldo name failed
[ 0.138907] add_sys_pwr_dm: get ldo name failed
[ 0.139195] add_sys_pwr_dm: get ldo name failed
[ 0.139482] add_sys_pwr_dm: get ldo name failed
[ 0.139770] add_sys_pwr_dm: get ldo name failed
[ 0.140137] add_sys_pwr_dm: get ldo name failed
[ 0.140670] add_sys_pwr_dm: get ldo name failed
[ 0.140960] add_sys_pwr_dm: get ldo name failed
[ 0.141245] after inited: sys_mask config = 0x0.
[ 0.141777] dynamic_standby enalbe = 0x0.
[ 0.142140] sunxi_reg_init enter
[ 0.146077] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.146461] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.147390] msgmni has been set to 59
[ 0.149241] io scheduler noop registered
[ 0.149549] io scheduler deadline registered
[ 0.150279] io scheduler cfq registered (default)
[ 0.151323] [DISP]disp_module_init
[ 0.152307] cmdline,disp=
[ 0.153931] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.154508] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.159494] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[ 0.164370] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[ 0.166792] [DISP]disp_module_init finish
[ 0.167800] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 0.168696] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 0.169248] sw_uart_pm()890 - uart0 clk is already enable
[ 0.169559] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 0.283863] console [ttyS0] enabled
[ 0.847122] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 0.855859] spi spi0: master is unqueued, this is deprecated
[ 0.863058] m25p_probe()982 - Use the Dual Mode Read.
[ 0.869143] m25p80 spi0.0: unrecognized JEDEC id 00efaa
[ 0.877715] Failed to alloc md5
[ 0.881914] eth0: Use random mac address
[ 0.886661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.914779] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.924136] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 0.933313] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 0.960074] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 0.968245] hub 1-0:1.0: USB hub found
[ 0.972824] hub 1-0:1.0: 1 port detected
[ 0.978497] sunxi-ehci sunxi-ehci.1: remove, state 1
[ 0.984413] usb usb1: USB disconnect, device number 1
[ 0.992587] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[ 1.009272] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.036863] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 1.045957] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[ 1.055027] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 1.125196] hub 1-0:1.0: USB hub found
[ 1.129797] hub 1-0:1.0: 1 port detected
[ 1.135231] sunxi-ohci sunxi-ohci.1: remove, state 1
[ 1.141366] usb usb1: USB disconnect, device number 1
[ 1.148421] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[ 1.165440] Initializing USB Mass Storage driver...
[ 1.171344] usbcore: registered new interface driver usb-storage
[ 1.178558] USB Mass Storage support registered.
[ 1.184613] file system registered
[ 1.191683] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 1.199928] android_usb gadget: Number of LUNs=1
[ 1.205412] lun0: LUN: removable file: (no medium)
[ 1.212294] android_usb gadget: android_usb ready
[ 1.218054] sunxikbd_script_init: key para not found, used default para.
[ 1.227810] [RTC] WARNING: Rtc time will be wrong!!
[ 1.234201] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 1.243915] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.253213] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.262645] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.271884] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.280986] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.290255] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.299491] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.308644] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.316564] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.328504] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.336591] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.343107] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.358357] no led_3, ignore it!
[ 1.362111] no led_4, ignore it!
[ 1.365839] no led_5, ignore it!
[ 1.369654] no led_6, ignore it!
[ 1.373368] no led_7, ignore it!
[ 1.377819] usbcore: registered new interface driver usbhid
[ 1.384303] usbhid: USB HID core driver
[ 1.389329] ashmem: initialized
[ 1.393128] logger: created 256K log 'log_main'
[ 1.398620] logger: created 32K log 'log_events'
[ 1.404017] logger: created 32K log 'log_radio'
[ 1.409278] logger: created 32K log 'log_system'
[ 1.416131] script_get_item return type err, consider it no ldo
[ 1.423685] asoc: sndcodec <-> sunxi-codec mapping ok
[ 1.431537] TCP: cubic registered
[ 1.435390] NET: Registered protocol family 17
[ 1.440613] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.449498] ThumbEE CPU extension supported.
[ 1.454506] Registering SWP/SWPB emulation handler
[ 1.460901] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.470087] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.478658] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.487359] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.496041] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.504618] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.513488] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.522399] =====ctp_fetch_sysconfig_para=====.
[ 1.527654] ctp_fetch_sysconfig_para: ctp_power_ldo script_get_item err.
[ 1.535442] ctp_fetch_sysconfig_para: ctp_power_ldo_vol script_get_item err.
[ 1.543492] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err.
[ 1.551180] ctp_irq gpio number is 196
[ 1.555462] wakeup gpio_request is failed
[ 1.600132] i2c-core: driver [ft5x_ts] using legacy suspend method
[ 1.607121] i2c-core: driver [ft5x_ts] using legacy resume method
[ 1.632269] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 1.658632] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 1.685104] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[ 1.693527] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 1.702728] ALSA device list:
[ 1.706281] #0: audiocodec
[ 1.709944] Waiting for root device /dev/mmcblk0p2...
离线
console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
根文件系统有问题,
1. mmc有没有驱动
2. 卡有没有问题
3. 卡的第二个分区有没有根文件系统
4. 貌似文件系统类型也没指定吧, 默认有可能使用ext2/3/4文件系统, 这些文件系统你有没有编译到内核
5. /dev/mmcblk0p2 是不是刚好指向你上面那个文件系统?
离线
晕哥,是这样的
同样的卡,同样的文件系统,主线linux正常启动
基于上面那些问题, 建议还是先烧一个能跑起来的系统吧,然后插卡,看卡是否正常。
离线
我只是把卡的第一分区 拷入配置好的script.bin ,uImage ,boot.scr
离线
会不会跟内核的配置有关,如果会,那么可能是内核哪里配置出问题
建议先用 ramdisk, 就是根文件系统与 kernel一起打包那种方式,
先把系统跑起来,
然后插卡,
看系统是否能挂载 mmcblk0p2 的文件系统。
离线