页次: 1
请教各位大神,把V3S改成了AXP203供电,用的是linux5.2,中断引脚接的是PB2,参考了 https://whycan.com/t_583.html 写的,启动报错如下
[ 0.701748] i2c /dev entries driver
[ 0.706274] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[ 0.717585] gpio gpiochip0: (1c20800.pinctrl): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
[ 0.727716] sun8i-v3s-pinctrl 1c20800.pinctrl: unable to lock HW IRQ 2 for IRQ
[ 0.734942] genirq: Failed to request resources for axp20x_irq_chip (irq 45) on irqchip sunxi_pio_edge
[ 0.744359] axp20x-i2c 0-0034: Failed to request IRQ 45 for axp20x_irq_chip: -5
[ 0.751664] axp20x-i2c 0-0034: failed to add irq chip: -5
[ 0.757115] axp20x-i2c: probe of 0-0034 failed with error -5
[ 0.763884] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.772510] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 0.783072] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 0.813088] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 0.820378] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 0.856330] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
不知道为啥提示申请不到中断,PB2没有复用,MMC CD引脚PB3又是可以正常申请到中断的;
/sys/class/power_supply下面没有任何东西
我的设备树节点如下
&i2c0 {
status = "okay";
axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>;
interrupt-parent=<&pio>;
interrupts=<1 2 IRQ_TYPE_EDGE_FALLING>;
//irq-gpios = <&pio 1 2 IRQ_TYPE_EDGE_FALLING>;
interrupt-controller;
#interrupt-cells = <1>;
ac-power-supply {
compatible = "x-powers,axp202-ac-power-supply";
status = "okay";
};
gpio {
compatible = "x-powers,axp209-gpio";
gpio-controller;
#gpio-cells = <0x02>;
status = "okay";
};
battery-power-supply {
compatible = "x-powers,axp209-battery-power-supply";
status = "okay";
//monitored-battery = <0x15>;
};
regulators {
x-powers,dcdc-freq = <1500>;
dcdc2 {
regulator-name = "dcdc2";
regulator-always-on;
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
dcdc3 {
regulator-name = "dcdc3";
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
ldo1 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "ldo1";
};
ldo2 {
regulator-name = "ldo2";
regulator-always-on;
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
ldo3 {
regulator-name = "ldo3";
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
ldo4 {
regulator-name = "ldo4";
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
ldo5 {
regulator-name = "ldo5";
status = "disabled";
};
};
usb_power_supply {
compatible = "x-powers,axp202-usb-power-supply";
status = "disabled";
};
};
};
搞了两天多,原来是文件系统开始地址写错了,导致一直ubi_read_volume_table: the layout volume was not found报错;太粗心了
[ 1.648725] ubi0: attaching mtd3
[ 1.779503] ubi0: scanning is finished
[ 1.788276] random: crng init done
[ 1.848548] ubi0: volume 0 ("rootfs") re-sized from 67 to 104 LEBs
[ 1.856386] ubi0: attached mtd3 (name "rootfs", size 16 MiB)
[ 1.862060] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 1.869040] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 1.875869] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 1.882817] ubi0: good PEBs: 126, bad PEBs: 2, corrupted PEBs: 0
[ 1.888848] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 1.896093] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 463946186
[ 1.905148] ubi0: available PEBs: 0, total reserved PEBs: 126, PEBs reserved for bad PEB handling: 18
[ 1.914900] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.923076] ubi0: background thread "ubi_bgt0d" started, PID 95
[ 1.958575] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.965423] vcc3v3: disabling
[ 1.968409] ALSA device list:
[ 1.971378] #0: F1C100s Audio Codec
[ 1.976151] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.984869] cfg80211: failed to load regulatory.db
[ 2.003895] UBIFS: parse sync
[ 2.013337] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.034338] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 101
[ 2.289008] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.296552] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.306513] UBIFS (ubi0:0): FS size: 7618560 bytes (7 MiB, 60 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[ 2.316699] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.322536] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7EA172D1-362A-4194-B528-DD7DC9F89643, small LPT model
[ 2.351056] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.371077] devtmpfs: mounted
[ 2.378680] Freeing unused kernel memory: 1024K
[ 2.386944] Run /sbin/init as init process
请教各位大神赐教,如题
ubifs是用buildroot生成的
log如下
2.013952] ubi0: attaching mtd3
[ 2.017405] ubi0: MTD device 3 is write-protected, attach in read-only mode
[ 2.034202] random: crng init done
[ 2.551002] ubi0: scanning is finished
[ 2.555209] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 2.562888] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 2.570228] UBI error: cannot attach mtd3
[ 2.574983] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.592818] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.599780] vcc3v3: disabling
[ 2.602817] ALSA device list:
[ 2.605902] #0: F1C100s Audio Codec
[ 2.610541] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.619345] cfg80211: failed to load regulatory.db
[ 2.626938] List of all partitions:
[ 2.630538] 1f00 1280 mtdblock0
[ 2.630545] (driver?)
[ 2.637295] 1f01 128 mtdblock1
[ 2.637302] (driver?)
[ 2.643888] 1f02 7168 mtdblock2
[ 2.643893] (driver?)
[ 2.650563] 1f03 65536 mtdblock3
[ 2.650569] (driver?)
[ 2.657219] 1f04 48768 mtdblock4
[ 2.657225] (driver?)
[ 2.663793] No filesystem could mount root, tried:
[ 2.663799] ubifs
[ 2.668744]
[ 2.672303] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 2.680693] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #127
[ 2.687841] Hardware name: Allwinner suniv Family
[ 2.692649] [<c010e3f8>] (unwind_backtrace) from [<c010b9dc>] (show_stack+0x10/0x14)
[ 2.700474] [<c010b9dc>] (show_stack) from [<c0116e18>] (panic+0xe8/0x2e4)
[ 2.707404] [<c0116e18>] (panic) from [<c0a01338>] (mount_block_root+0x1fc/0x27c)
[ 2.714942] [<c0a01338>] (mount_block_root) from [<c0a014c8>] (mount_root+0x110/0x154)
[ 2.722907] [<c0a014c8>] (mount_root) from [<c0a01634>] (prepare_namespace+0x128/0x188)
[ 2.730973] [<c0a01634>] (prepare_namespace) from [<c07f5e30>] (kernel_init+0x8/0x110)
[ 2.738953] [<c07f5e30>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[ 2.746556] Exception stack(0xc3833fb0 to 0xc3833ff8)
[ 2.751636] 3fa0: 00000000 00000000 00000000 00000000
[ 2.759855] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.768067] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2.774716] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) ]---
页次: 1