WhyCan Forum

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#3 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下各们,为什么我的AXP203的电源芯片在Power_supply下没有内容? » 2019-08-09 17:30:06

可以骗过去,但依然没什么用
[    1.156613] input: hy46xx_ts as /devices/virtual/input/input0
[    1.216859] hy46xx_probe: run over is ok
[    1.221103] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.227773] i2c driver name = c0805dbc   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.233991] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.239774] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.245379] axp20x_i2c_probe  222222222222222222222
[    1.256685] mfd_add_devices xxxxxxxxxxxxx
[    1.260772] cell->name = axp20x-gpio
[    1.264792] cell->name = axp20x-pek
[    1.268540] cell->name = axp20x-regulator
[    1.272694] axp20x_regulator_probe   wwwwwwwwwwwwwwwwwwww
[    1.278642] regulator_desc->name = ldo1
[    1.282538] rdev->desc = regulator_desc = ldo1
[    1.287034]  rdev->supply_name = acin
[    1.290706] rdev->desc->name = regulator-dummy
[    1.295149] rdev->desc->name = ldo1
[    1.298656] rdev->desc->name = regulator-dummy
[    1.303093] ldo1: supplied by regulator-dummy
[    1.307760] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.312992] regulator_desc->name = ldo2
[    1.316900] rdev->desc = regulator_desc = ldo2
[    1.321344]  rdev->supply_name = ldo24in
[    1.325268] rdev->desc->name = regulator-dummy
[    1.329729] rdev->desc->name = ldo2
[    1.333211] rdev->desc->name = regulator-dummy
[    1.337660] ldo2: supplied by regulator-dummy
[    1.343203] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.348492] regulator_desc->name = ldo3
[    1.352358] rdev->desc = regulator_desc = ldo3
[    1.356801]  rdev->supply_name = ldo3in
[    1.360663] rdev->desc->name = regulator-dummy
[    1.365105] rdev->desc->name = ldo3
[    1.368601] rdev->desc->name = regulator-dummy
[    1.373038] ldo3: supplied by regulator-dummy
[    1.378124] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.383356] regulator_desc->name = ldo4
[    1.387264] rdev->desc = regulator_desc = ldo4
[    1.391706]  rdev->supply_name = ldo24in
[    1.395631] rdev->desc->name = regulator-dummy
[    1.400086] rdev->desc->name = ldo4
[    1.403570] rdev->desc->name = regulator-dummy
[    1.408021] ldo4: supplied by regulator-dummy
[    1.412629] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.417897] regulator_desc->name = ldo5
[    1.421762] rdev->desc = regulator_desc = ldo5
[    1.426203]  rdev->supply_name = ldo5in
[    1.430063] rdev->desc->name = regulator-dummy
[    1.434506] rdev->desc->name = ldo5
[    1.438004] rdev->desc->name = regulator-dummy
[    1.442441] ldo5: supplied by regulator-dummy
[    1.447936] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.453170] regulator_desc->name = dcdc2
[    1.457164] rdev->desc = regulator_desc = dcdc2
[    1.461696]  rdev->supply_name = vin2
[    1.465359] rdev->desc->name = regulator-dummy
[    1.469826] rdev->desc->name = dcdc2
[    1.473396] rdev->desc->name = regulator-dummy
[    1.477847] dcdc2: supplied by regulator-dummy
[    1.483001] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.488277] regulator_desc->name = dcdc3
[    1.492221] rdev->desc = regulator_desc = dcdc3
[    1.496750]  rdev->supply_name = vin3
[    1.500436] rdev->desc->name = regulator-dummy
[    1.504880] rdev->desc->name = dcdc3
[    1.508468] rdev->desc->name = regulator-dummy
[    1.512904] dcdc3: supplied by regulator-dummy
[    1.518095] devm_regulator_register  xxxxxxxxxxxxxxxxxx
[    1.523349] cell->name = axp20x-adc
[    1.527089] cell->name = axp20x-battery-power-supply
[    1.532378] cell->name = axp20x-ac-power-supply
[    1.537303] cell->name = axp20x-usb-power-supply
[    1.542214] axp20x-i2c 0-0034: AXP20X driver loaded
[    1.548336] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.557099] rdev->desc->name = regulator-dummy
[    1.562042] GPIO lookup for consumer cd
[    1.565895] GPIO lookup for consumer wp
[    1.626894] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.633988] usbcore: registered new interface driver usbhid
[    1.639660] usbhid: USB HID core driver
[    1.650957] NET: Registered protocol family 17
[    1.655541] Key type dns_resolver registered
[    1.660067] Registering SWP/SWPB emulation handler
这个是打印信息,中间我自己添加了一些。打印出来的。它根本最后 都用了regulator-dummy

#5 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下各们,为什么我的AXP203的电源芯片在Power_supply下没有内容? » 2019-08-09 16:43:44

不是这样的,我原来的DTS有写一个中断信息,但因为我们的芯片没有接中断IO,所以本质上是没有意义的。而且我也打电话问过代理商,不接IRQ是没有问题的,可以用。

#6 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下各们,为什么我的AXP203的电源芯片在Power_supply下没有内容? » 2019-08-09 16:40:26

加了也调试过,不是驱动没加,驱动加载了,那个DTS也是标准的,无须修改。但编译后的结果是它根本就没有产生 电池信息。

#7 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下各们,为什么我的AXP203的电源芯片在Power_supply下没有内容? » 2019-08-09 16:39:25

[    1.271235] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.277908] i2c driver name = c0806200   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.284094] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.289865] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.295464] axp20x_i2c_probe  222222222222222222222
[    1.306817] axp20x-i2c 0-0034: Failed to request IRQ 0 for axp20x_irq_chip: -22
[    1.314193] axp20x-i2c 0-0034: failed to add irq chip: -22
[    1.319929] axp20x-i2c: probe of 0-0034 failed with error -22
[    1.326779] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.335532] rdev->desc->name = regulator-dummy
[    1.340580] GPIO lookup for consumer cd
[    1.344439] GPIO lookup for consumer wp
[    1.407014] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
还有
[    1.519058] rdev->desc->name = regulator-dummy
[    1.523609] rdev->desc->name = regulator-dummy
[    1.528820] rdev->desc->name = regulator-dummy
同时在目录下没有生成任何与电源有关系的信息
#
# cd /sys/
# cd class/
# cd power_supply/
# ls
# ^C
#

#8 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下各们,为什么我的AXP203的电源芯片在Power_supply下没有内容? » 2019-08-09 16:31:39

pqfeng
回复: 12

请教一下,为什么我的AXP203的电源芯片在Power_supply下没有内容?按原来小白菜的帖子我的配置了驱动目录下的两个选项。也看了一下axp209.dtsi的内容,也看不出有什么错误,按说这是个官方标配,不应该有任何问题才对。但现就是电池部分没有任何信息。希望有做过的朋友提点一下,不胜感激。

#9 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 荔枝派v3s上使用AXP203管理电源 » 2019-08-09 08:54:22

昨天发现我们的板子上是没有中断的,没用到中断。所以把DTS中的中断那一句杠起来了,结果报找不到中断。。不过有无中断,好像/sys/class/power-supply下面都是没有任何东西。

#10 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » sys/class/power_supply没有内容 » 2019-08-06 17:00:31

看了这两个信息,基本上没有多大作用。主要是不知道从哪里入手。。看了Menuconfig,相关的axp都选中了啊

#11 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » sys/class/power_supply没有内容 » 2019-08-06 14:55:28

pqfeng
回复: 3

折腾很久,发现Power_supply下没有内容,这是怎么回事?代码能正常运行到交互状态,但电源管理却没有内容,电源管理部分驱动也没有报错。
[    1.080641] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.087340] i2c driver name = c0805f74   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.093552] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.099336] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.113096] ldo1: supplied by regulator-dummy
[    1.117910] ldo2: supplied by regulator-dummy
[    1.123442] ldo3: supplied by regulator-dummy
[    1.128695] ldo4: supplied by regulator-dummy
[    1.133335] ldo5: supplied by regulator-dummy
[    1.138940] dcdc2: supplied by regulator-dummy
[    1.144149] dcdc3: supplied by regulator-dummy
[    1.150498] axp20x-i2c 0-0034: AXP20X driver loaded


求解。。。。。

#12 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何读取电池电量。 » 2019-08-06 14:44:25

。另外,我们写驱动程序的时候又要给用户提供接口,内核中提供给用户的接口就是sysfs,通过读取sysfs文件系统中文件内容,就可以得到电源的信息。内核主要通过两个文件power_supply_class.c和power_supply_core.c,我们调用其中的函数就可以把电源(电池,USB或AC)的信息展现给用户,有关电源的属性写在/sys/class/powersupply文件夹下(此文件夹为程序运行后所生成的)。

/sys/class/power_supply文件夹存放的是,电池驱动通过power_supply_register函数注册的各个电源属性名称


我的这个目录下没有内容啊。空的。怎么回事呢。

#13 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了, » 2019-08-06 09:56:18

呃。写在另一个帖子里了。说一下解决方法:
1,我在每一个名称后添加了最大最小电压值,这个是根据手册上来的,但没有用。依然出错。然后不死心,每几个加上了regulator-always-on;    结果就OK了。之所以加这个,是因为它报错时有disable 所以我想加一下always on试试,不让它关闭。结果是正确的。现在的问题是不知道如何读电量。因为/dev/下没有input/, 更没有event0,这个比较坑爹。。。

    regulators {
        /* Default work frequency for buck regulators */
        x-powers,dcdc-freq = <1500>;

        reg_dcdc2: dcdc2 {
            regulator-name = "dcdc2";   
        regulator-always-on;           
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <2275000>;
        };

        reg_dcdc3: dcdc3 {
            regulator-name = "dcdc3";
            regulator-always-on;
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <3500000>;
        };

        reg_ldo1: ldo1 {
            /* LDO1 is a fixed output regulator */
            regulator-always-on;
            regulator-name = "ldo1";
        regulator-min-microvolt = <1300000>;
        regulator-max-microvolt = <1300000>;
           
        };

        reg_ldo2: ldo2 {
            regulator-name = "ldo2";
            regulator-always-on;
        regulator-min-microvolt = <1800000>;
        regulator-max-microvolt = <3300000>;
        };

        reg_ldo3: ldo3 {
            regulator-name = "ldo3";
        regulator-min-microvolt = <700000>;
        regulator-max-microvolt = <3500000>;
        };

#15 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何读取电池电量。 » 2019-08-05 16:38:00

pqfeng
回复: 4

在V3S+AXP203的配置上,现已能正常进到console,之前进不了console的问题已解决。现在电压是有了,但不知道要如何读取电池电压电量相关的信息。如果哪位朋友知道这方面的知识,望不吝赐教。谢谢。
[    1.043151] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.051978] hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.059383] Successfully added driver hy46xx_ts
[    1.064536] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.071422] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.075984] i2c /dev entries driver
[    1.080624] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.087321] i2c driver name = c0805f74   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.093533] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.099317] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.113057] ldo1: supplied by regulator-dummy
[    1.117879] ldo2: supplied by regulator-dummy
[    1.123408] ldo3: supplied by regulator-dummy
[    1.128665] ldo4: supplied by regulator-dummy
[    1.133296] ldo5: supplied by regulator-dummy
[    1.138903] dcdc2: supplied by regulator-dummy
[    1.144108] dcdc3: supplied by regulator-dummy
[    1.150453] axp20x-i2c 0-0034: AXP20X driver loaded
[    1.156714] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.165926] GPIO lookup for consumer cd
[    1.169874] GPIO lookup for consumer wp
[    1.226645] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.233691] usbcore: registered new interface driver usbhid
[    1.239360] usbhid: USB HID core driver
[    1.250667] NET: Registered protocol family 17
[    1.255229] Key type dns_resolver registered
[    1.259756] Registering SWP/SWPB emulation handler
[    1.269186] 222222222222222222222  simplefb_probe 33333333333333333333333333333
[    1.276820] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.287389] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.296702] xxxxxxxxxxxxxxxxxxxxxxxxxxx  info->fix.smem_len = 1536000
[    1.311539] Console: switching to colour frame buffer device 100x30
[    1.323933] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.331456] GPIO lookup for consumer usb0_id_det
[    1.336136] GPIO lookup for consumer usb0_vbus_det
[    1.342039] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.353456] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.359301] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.369729] hub 3-0:1.0: USB hub found
[    1.375671] hub 3-0:1.0: 1 port detected
[    1.380918] using random self ethernet address
[    1.385374] using random host ethernet address
[    1.390848] usb0: HOST MAC f2:7e:ea:69:a0:ac
[    1.395165] usb0: MAC de:c7:c6:a1:99:cc
[    1.399156] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.406675] g_cdc gadget: g_cdc ready
[    1.410614] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 01:50:41 UTC (6641)
[    1.419087] vcc3v0: disabling
[    1.422063] vcc5v0: disabling
[    1.425048] ALSA device list:
[    1.428069]   No soundcards found.
[    1.432363] Waiting for root device /dev/mmcblk0p2...
[    1.443955] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.453922] mmc0: new high speed SD card at address 213f
[    1.459918] mmcblk0: mmc0:213f APPSD 481 MiB
[    1.465656]  mmcblk0: p1 p2
[    1.497752] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.506850] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.562827] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.672639] EXT4-fs (mmcblk0p2): recovery complete
[    1.682162] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.690396] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.704729] devtmpfs: mounted
[    1.709193] Freeing unused kernel memory: 1024K
[    1.906523] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '4.13.16-licheepi-zero+': No such file or directory
Initializing random number generator... done.
Starting network: OK
#
#

#17 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了, » 2019-08-05 14:39:29

我也觉得应该不对。但我不知道如何去改,我感觉应该改dts这一部分:
    regulators {
        /* Default work frequency for buck regulators */
        x-powers,dcdc-freq = <1500>;

        reg_dcdc2: dcdc2 {
            regulator-name = "dcdc2";
        };

        reg_dcdc3: dcdc3 {
            regulator-name = "dcdc3";
        };

        reg_ldo1: ldo1 {
            /* LDO1 is a fixed output regulator */
            regulator-always-on;
            regulator-name = "ldo1";
        };

        reg_ldo2: ldo2 {
            regulator-name = "ldo2";
        };

        reg_ldo3: ldo3 {
            regulator-name = "ldo3";
        };

        reg_ldo4: ldo4 {
            regulator-name = "ldo4";
        };

        reg_ldo5: ldo5 {
            regulator-name = "ldo5";
            /*status = "disabled";*/
        };
    };

但又没有参考资料

#19 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了, » 2019-08-05 14:34:21

[    1.115873] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.121648] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.135023] ldo1: supplied by regulator-dummy
[    1.139844] ldo2: supplied by regulator-dummy
[    1.145390] ldo3: supplied by regulator-dummy
[    1.150672] ldo4: supplied by regulator-dummy
[    1.155295] ldo5: supplied by regulator-dummy
[    1.160912] dcdc2: supplied by regulator-dummy
[    1.166068] dcdc3: supplied by regulator-dummy
[    1.172336] axp20x-i2c 0-0034: AXP20X driver loaded

这一段中,这个regulator-dummy 是正常的吗

#21 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了, » 2019-08-05 11:03:16

触摸芯片的问题是因为我把多个芯片打开了,注释掉就没事了。现在没有问题了。只有
[    1.439238] vcc3v0: disabling
[    1.442215] vcc5v0: disabling
[    1.445190] ldo2: disabling
这个问题了。主要还是不知道AXP这个芯片怎么工作的。

#22 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 荔枝派v3s上使用AXP203管理电源 » 2019-08-05 10:28:59

我现在也是跑一半后全部不跑了。。。无从下手。。。

#23 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3S上加Axp203电源管理芯片,导致 启动失败。。。。。无从下手啊。 » 2019-08-05 10:10:12

死机的问题找到了,并解决了。原来是我以为同一类型的设备,可以直接在设备树中。我把三种触摸芯片的内容全部写在了一起。导致起不来。现在OK了。算是验证了一个错误想法。

#24 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了, » 2019-08-05 09:48:48

pqfeng
回复: 12

请教一下大家,电源芯片与触摸芯片在同一个IIC上,现在启动不了,还导致触摸屏注册失败。
这是为什么?
[    1.052101] hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.059502] Successfully added driver hy46xx_ts
[    1.064630] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.071513] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.076066] i2c /dev entries driver

[    1.080955] i2c i2c-0: Failed to register i2c client  hy46xx_ts at 0x38 (-16)
[    1.088183] i2c i2c-0: of_i2c: Failure registering /soc/i2c@01c2ac00/hycon@38
[    1.095312] i2c i2c-0: Failed to create I2C device for /soc/i2c@01c2ac00/hycon@38

[    1.103009] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.109658] i2c driver name = c0805f74   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.115873] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.121648] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.135023] ldo1: supplied by regulator-dummy
[    1.139844] ldo2: supplied by regulator-dummy
[    1.145390] ldo3: supplied by regulator-dummy
[    1.150672] ldo4: supplied by regulator-dummy
[    1.155295] ldo5: supplied by regulator-dummy
[    1.160912] dcdc2: supplied by regulator-dummy
[    1.166068] dcdc3: supplied by regulator-dummy
[    1.172336] axp20x-i2c 0-0034: AXP20X driver loaded
[    1.178653] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.187939] GPIO lookup for consumer cd
[    1.191798] GPIO lookup for consumer wp
[    1.246738] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.253820] usbcore: registered new interface driver usbhid
[    1.259492] usbhid: USB HID core driver
[    1.270782] NET: Registered protocol family 17
[    1.275343] Key type dns_resolver registered
[    1.279871] Registering SWP/SWPB emulation handler
[    1.289297] 222222222222222222222  simplefb_probe 33333333333333333333333333333
[    1.296933] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.307504] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.316819] xxxxxxxxxxxxxxxxxxxxxxxxxxx  info->fix.smem_len = 1536000
[    1.331726] Console: switching to colour frame buffer device 100x30
[    1.344121] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.351602] GPIO lookup for consumer usb0_id_det
[    1.356284] GPIO lookup for consumer usb0_vbus_det
[    1.362228] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.373624] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.379469] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.389922] hub 3-0:1.0: USB hub found
[    1.395868] hub 3-0:1.0: 1 port detected
[    1.401050] using random self ethernet address
[    1.405509] using random host ethernet address
[    1.410998] usb0: HOST MAC b2:b2:f1:7b:92:58
[    1.415321] usb0: MAC 22:31:d4:6c:34:04
[    1.419311] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.426826] g_cdc gadget: g_cdc ready
[    1.430768] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:36:54 UTC (2214)
[    1.439238] vcc3v0: disabling
[    1.442215] vcc5v0: disabling
[    1.445190] ldo2: disabling
[    1.4

#25 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3S上加Axp203电源管理芯片,导致 启动失败。。。。。无从下手啊。 » 2019-08-03 18:12:37

pqfeng
回复: 4

按照小白菜的帖子加了相应的内容,也能probe已经运行,但运行时停止了。。。不知道问题在哪里。有大神帮忙看一下喔。。。谢谢。

[    1.051989] hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.059395] Successfully added driver hy46xx_ts
[    1.064529] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.071414] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.075972] i2c /dev entries driver
[    1.080859] i2c i2c-0: Failed to register i2c client  hy46xx_ts at 0x38 (-16)
[    1.088087] i2c i2c-0: of_i2c: Failure registering /soc/i2c@01c2ac00/hycon@38
[    1.095217] i2c i2c-0: Failed to create I2C device for /soc/i2c@01c2ac00/hycon@38
[    1.102900] i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.109548] i2c driver name = c0805534   xxxxxxxxxxxxxxxxxxxxxxxxx
[    1.115762] axp20x_i2c_probe  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    1.121539] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    1.134950] ldo1: supplied by regulator-dummy
[    1.139743] ldo2: supplied by regulator-dummy
[    1.145281] ldo3: supplied by regulator-dummy
[    1.150559] ldo4: supplied by regulator-dummy
[    1.155174] ldo5: supplied by regulator-dummy
[    1.160788] dcdc2: supplied by regulator-dummy
[    1.165969] dcdc3: supplied by regulator-dummy
[    1.172250] axp20x-i2c 0-0034: AXP20X driver loaded
[    1.178070] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.187377] GPIO lookup for consumer cd
[    1.191237] GPIO lookup for consumer wp
[    1.246626] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.253684] usbcore: registered new interface driver usbhid
[    1.259359] usbhid: USB HID core driver
[    1.270652] NET: Registered protocol family 17
[    1.275209] Key type dns_resolver registered
[    1.279729] Registering SWP/SWPB emulation handler
[    1.289225] 222222222222222222222  simplefb_probe 33333333333333333333333333333
[    1.296857] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.307430] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.316745] xxxxxxxxxxxxxxxxxxxxxxxxxxx  info->fix.smem_len = 1536000
[    1.331620] Console: switching to colour frame buffer device 100x30
[    1.344018] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.351501] GPIO lookup for consumer usb0_id_det
[    1.356177] GPIO lookup for consumer usb0_vbus_det
[    1.362110] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.373533] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.379378] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.389837] hub 3-0:1.0: USB hub found
[    1.395781] hub 3-0:1.0: 1 port detected
[    1.400994] using random self ethernet address
[    1.405452] using random host ethernet address
[    1.410916] usb0: HOST MAC b2:1f:47:aa:3b:a2
[    1.415232] usb0: MAC f2:50:2e:bb:35:e1
[    1.419222] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.426737] g_cdc gadget: g_cdc ready
[    1.430679] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 02:20:54 UTC (8454)
[    1.439163] vcc3v0: disabling
[    1.442138] vcc5v0: disabling
[    1.445114] ldo2: disabling
[    1.4

#26 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,关于触摸屏的问题:成功运行了初始,但却不运行probe. » 2019-08-02 15:08:58

问题已解决。。。原来 是匹配名字与设备树中的名字中,多出一个字符。。。。。因为多出这个字符,导致无法匹配,故找不到设备。从而导致无法运行probe,

#27 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,关于触摸屏的问题:成功运行了初始,但却不运行probe. » 2019-08-02 14:50:24

pqfeng
回复: 1

请教一下大家,为什么我的触摸驱动成功运行了初始化,却不运行probe,这是为什么?
附信息:
[    2.165299] hub 2-0:1.0: 1 port detected
[    2.172932] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    2.181757] hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[    2.189186] Successfully added driver hy46xx_ts
代码:
static struct i2c_driver hy46xx_ts_driver = {
    .driver = {
           .name = HY46XX_NAME,
           .owner = THIS_MODULE,
           .of_match_table = of_match_ptr(hy46xx_dt_match),
           .pm = &hy46xx_ts_pm_ops,
           },
    .probe     = hy46xx_ts_probe,
    .remove = hy46xx_ts_remove,
    .id_table = hy46xx_ts_id,
};
/************************************************************/
static int __init hy46xx_ts_init(void)
{
    int ret;
    printk("hy46xx_ts_init  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n");
    ret = i2c_add_driver(&hy46xx_ts_driver);
    if (ret) {
        printk(KERN_WARNING "Adding hy46xx driver failed "
               "(errno = %d)\n", ret);
    } else {
        pr_info("Successfully added driver %s\n",
            hy46xx_ts_driver.driver.name);
    }
    return ret;
}


我在probe入口处加了打印,它根本不运行,然后我又在i2c-core-base.c
static int i2c_device_probe(struct device *dev)
{
    struct i2c_client    *client = i2c_verify_client(dev);
    struct i2c_driver    *driver;
    int status;
    printk("i2c driver name i2c_device_probe  xxxxxxxxxxxxxxxxxxxxxxxxx\n");
   
    if (!client)
        return 0;
   
    driver = to_i2c_driver(dev->driver);
    printk("i2c driver name = %x   xxxxxxxxxxxxxxxxxxxxxxxxx\n",driver->driver.name);
    if (!client->irq && !driver->disable_i2c_core_irq_mapping) {
        int irq = -ENOENT;
这个函数里也加了打印,它也不运行。我就不知道这是 为什么了。
哪位大神有空,帮我瞄一下喔。。。谢谢。

#28 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 重新编译QT4.5.2版本。碰到一个奇怪的问题。 » 2019-07-20 16:13:53

我加了-nomake demos 应该不会了,再者,它提示的是核心库目录,证明它不是编译的Demo。

#29 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 重新编译QT4.5.2版本。碰到一个奇怪的问题。 » 2019-07-20 15:42:19

修改后,还是不行,仔细看信息,发现它是编译库时要求有main。库是没有main的。所以应该是哪里出了错吧?为什么会出现这种情况?
/opt/arm-linux-gnueabihf/bin/../arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf/crt1.o: In function `_start':
sad.text+0x28): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:456: recipe for target '../../lib/libQtCore.so.4.5.2' failed
make[1]: *** [../../lib/libQtCore.so.4.5.2] Error 1
make[1]: Leaving directory '/home/pqfeng/qt-embedded-linux-opensource-src-4.5.2/src/corelib'
Makefile:196: recipe for target 'sub-corelib-make_default-ordered' failed
make: *** [sub-corelib-make_default-ordered] Error 2

#30 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 重新编译QT4.5.2版本。碰到一个奇怪的问题。 » 2019-07-20 15:25:06

我把配置参数又仔细对了一次,最后发现原来nomake demo后面少了一个s ,正常的应该是nomake demos 也是无语了。这个参数编译要想对,最好把参数全面对一次它的帮助,可以减少很多错误。

#31 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 重新编译QT4.5.2版本。碰到一个奇怪的问题。 » 2019-07-20 15:19:30

这个英文意思我理解。我的意思是,为什么会报这种问题?百度上搜索都没有呢。比较奇怪啊。我也没有修改什么代码啊。没有理由人家会不报吧。

#32 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 重新编译QT4.5.2版本。碰到一个奇怪的问题。 » 2019-07-20 14:44:26

pqfeng
回复: 6

e-shared-emb-arm/moc_qsharedmemory.o .obj/release-shared-emb-arm/moc_qeventdispatcher_unix_p.o .obj/release-shared-emb-arm/moc_qtextcodecplugin.o   -L/home/pqfeng/qt-embedded-linux-opensource-src-4.5.2/lib -lm -lpthread -ldl

/opt/arm-linux-gnueabihf/bin/../arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf/crt1.o: In function `_start':
sad.text+0x28): undefined reference to `main'
collect2: error: ld returned 1 exit status

Makefile:456: recipe for target '../../lib/libQtCore.so.4.5.2' failed
make[1]: *** [../../lib/libQtCore.so.4.5.2] Error 1
make[1]: Leaving directory '/home/pqfeng/qt-embedded-linux-opensource-src-4.5.2/src/corelib'
Makefile:196: recipe for target 'sub-corelib-make_default-ordered' failed
make: *** [sub-corelib-make_default-ordered] Error 2

请教一下大家。这个报main错误是什么情况?编译又卡壳了。

#33 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么它始终报找不到头文件,明明我有说明搜索路径,变量有定义。 » 2019-07-20 14:40:48

这里报的错是因为我原来生成的tslib库居然是X86版的。
吐血。现在直接用以前的库替换了。懒得编译了。

#34 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么它始终报找不到头文件,明明我有说明搜索路径,变量有定义。 » 2019-07-20 11:45:11

嗯这一行我手动加到编译环境中去了,却又报了其他的问题

You are licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.
You are also licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.

You have already accepted the terms of the  license.

Creating qmake. Please wait...
make: Nothing to be done for 'first'.
floatmath auto-detection... ()
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -O2 -march=armv7-a -I/opt/tslib/include -L/opt/tslib/lib -lts  -I../../../mkspecs/arm-linux-gnueabihf -I. -o floatmath.o floatmath.cpp
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++  -o floatmath floatmath.o     
floatmath enabled.
tslib auto-detection... ()
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -O2 -march=armv7-a -I/opt/tslib/include -L/opt/tslib/lib -lts  -I../../../mkspecs/arm-linux-gnueabihf -I. -o tslib.o tslib.cpp
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++  -o tslib tslib.o     -lts
/opt/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lts
collect2: error: ld returned 1 exit status
Makefile:91: recipe for target 'tslib' failed
make: *** [tslib] Error 1
tslib disabled.
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/pqfeng/qt-embedded-linux-opensource-src-4.5.2/mkspecs/arm-linux-gnueabihf

#35 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么它始终报找不到头文件,明明我有说明搜索路径,变量有定义。 » 2019-07-20 11:16:06

pqfeng
回复: 4

Creating qmake. Please wait...
make: Nothing to be done for 'first'.
floatmath auto-detection... ()
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -O2 -march=armv7-a -lts  -I../../../mkspecs/arm-linux-gnueabihf -I. -o floatmath.o floatmath.cpp
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++  -o floatmath floatmath.o     
floatmath enabled.
tslib auto-detection... ()
/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -O2 -march=armv7-a -lts  -I../../../mkspecs/arm-linux-gnueabihf -I. -o tslib.o tslib.cpp
tslib.cpp:1:19: fatal error: tslib.h: 没有那个文件或目录
#include <tslib.h>
                   ^
compilation terminated.
Makefile:160: recipe for target 'tslib.o' failed
make: *** [tslib.o] Error 1
tslib disabled.

The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
#
# qmake configuration for building with arm-linux-gnueabi-g++
#

以上是报错。但我明明有定义。搞不清楚原因。但肯定是有执行的。因为上面

MAKEFILE_GENERATOR      = UNIX
TARGET_PLATFORM         = unix
TEMPLATE                = app
CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
QT                      += core gui
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_CFLAGS_RELEASE += -O2 -march=armv7-a -lts
QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7-a -lts

QMAKE_INCDIR=/opt/tslib/include
QMAKE_LIBDIR=/opt/tslib/lib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

# modifications to g++.conf
QMAKE_CC                = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
QMAKE_CXX               = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
QMAKE_LINK              = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB        = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR                = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY           = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-objcopy
QMAKE_STRIP             = /opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip


load(qt_config)

#39 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 明明编译的是嵌入式版,为什么会报需要QWS的支持? » 2019-07-19 16:06:00

pqfeng
回复: 6

Starting network: OK
# cd V3S/
# ./TableMeet_GUI -platform linuxfb:fb=/dev/fb1
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.

我百度后得知,是需要要qvfb的支持。qvfb是X11或Window的啊。然后再百度,了解到说是需要在编译时加上 -embbeded arm,才可以编译出嵌入式版本。但我的编译参数是加了这个的。编译参数如下:
sudo ./configure -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-sql-qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM

哪位有经验的高手帮我指点一下。不胜感激。

#40 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么我用LibQT5能正常启动。用LibQt4就不行呢。 » 2019-07-19 15:04:52

嗯,你发的六个链接,前面三个我回复了,后面的几个问题都不是我搞定的,所以也没办法回复了。不好意思。
另外 :我看了,sbin/init 是有的。但linuxrc 和 /init是没有的。
我处理一下,应该是你说的问题。多谢了。

#41 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++ » 2019-07-19 14:59:10

是的,可能那个是正常的,可能是先用g++生成文件,然后再用交叉编译生成执行程序。看了运行数据显示好像正常的

#42 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到? » 2019-07-19 14:57:54

是的,用的是Sudo make,因为要创建文件嘛。不过我在sudo 上调用arm-linux-gnueabihf-g++没有问题啊。

#43 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么我用LibQT5能正常启动。用LibQt4就不行呢。 » 2019-07-19 11:47:41

pqfeng
回复: 3

[    2.728825]   No soundcards found.
[    2.735145] Waiting for root device /dev/mmcblk0p2...
[    2.772993] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.782932] mmc0: new high speed SD card at address 213f
[    2.789159] mmcblk0: mmc0:213f APPSD 481 MiB
[    2.794957]  mmcblk0: p1 p2
[    2.827067] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    2.836152] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.862503] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    3.658747] EXT4-fs (mmcblk0p2): recovery complete
[    3.750708] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.758924] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.765016] devtmpfs: error mounting -2
[    3.770150] Freeing unused kernel memory: 1024K
[    3.775039] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    3.789200] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #173
[    3.796669] Hardware name: Allwinner sun8i Family
[    3.801410] [<c010e58c>] (unwind_backtrace) from [<c010b290>] (show_stack+0x10/0x14)
[    3.809155] [<c010b290>] (show_stack) from [<c0669d7c>] (dump_stack+0x84/0x98)
[    3.816378] [<c0669d7c>] (dump_stack) from [<c011b728>] (panic+0xdc/0x248)
[    3.823253] [<c011b728>] (panic) from [<c067cd44>] (kernel_init+0xf8/0x108)
[    3.830213] [<c067cd44>] (kernel_init) from [<c0107618>] (ret_from_fork+0x14/0x3c)
[    3.837776] Rebooting in 5 seconds..

#45 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到? » 2019-07-18 09:29:49

pqfeng
回复: 4

make[1]: Entering directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/tools/uic'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/tools/uic'
cd src/corelib/ && make -f Makefile
make[1]: Entering directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib'
/home/pqfeng/qt-everywhere-opensource-src-4.8.6/bin/qmake -spec ../../mkspecs/arm-linux-gnueabihf -o Makefile corelib.pro
arm-linux-gnueabihf-g++ -c -pipe -O2 -O2 -march=armv7-a -lts -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_ARCH_ARM -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/arm-linux-gnueabihf -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -I/usr/local/tslib/include -o .obj/release-shared-emb-arm/qabstractanimation.o animation/qabstractanimation.cpp
make[1]: arm-linux-gnueabihf-g++:命令未找到
Makefile:6555: recipe for target '.obj/release-shared-emb-arm/qabstractanimation.o' failed

make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 127
make[1]: Leaving directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib'
Makefile:198: recipe for target 'sub-corelib-make_default-ordered' failed
make: *** [sub-corelib-make_default-ordered] Error 2
pqfeng@ubuntu:~/qt-everywhere-opensource-src-4.8.6$ arm-linux-gnueabihf-g++ -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-g++
COLLECT_LTO_WRAPPER=/opt/arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.2/lto-wrapper
Target: arm-linux-gnueabihf

Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.9-2014.09/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb --disable-multilib --with-float=hard
Thread model: posix
gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)

#46 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++ » 2019-07-18 09:04:39

sudo ./configure --host=arm-linux -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:
--host=arm-linux: invalid command-line switch


没有这个参数选项。。。。。

#47 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++ » 2019-07-17 20:14:24

pqfeng
回复: 4

pqfeng@ubuntu:~/qt-everywhere-opensource-src-4.8.6$ sudo ./configure -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

You have already accepted the terms of the  license.

Creating qmake. Please wait...
g++ -c -o unixmake2.o -pipe -m64 -DQMAKE_OPENSOURCE_EDITION -O2 -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include/QtCore -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/global -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/xml -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED  generators/unix/unixmake2.cpp
^Cmake: *** wait: 没有子进程。 停止。
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。

我明明配置了嵌入式编译环境,运行时却是g++,在这个配置完成后,make也是g++编译出的PC版。不知道为什么。附:我在mkspace 下有arm-linux-gnueabihf目录。

#48 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3s buildroot 一键生成打包生成32M spi flash 镜像, jffs2 文件系统, 默认启动 Qt 模拟时钟demo, » 2019-07-12 18:54:40

141  cd /opt/
  142  ls
  143  tar xzvf buildroot-2018.08.2.tar.gz
  144  ls
  145  cd buildroot-2018.08.2
  146  cd ..
  147  cd buildroot-2018.08.2
  148  apt-get update
  149  apt-get install -y make gcc g++ unzip git bc python device-tree-compiler mtd-utils
  150  wget https://whycan.cn/files/members/3/backup_20190220A.tgz
  151  tar xvf backup_20190220A.tgz
  152  make
  153  history

#50 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3s buildroot 一键生成打包生成32M spi flash 镜像, jffs2 文件系统, 默认启动 Qt 模拟时钟demo, » 2019-07-12 18:33:47

我这个Make失败了。不知道怎么回事。运行挺久的。
if test -z "$objects"; then                \
  echo 'int __libgcc_eh_dummy;' > eh_dummy.c;        \
  /opt/buildroot-2018.08.2/output/build/host-gcc-initial-7.3.0/build/./gcc/xgcc -B/opt/buildroot-2018.08.2/output/build/host-gcc-initial-7.3.0/build/./gcc/ -B/opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/bin/ -B/opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/lib/ -isystem /opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/include -isystem /opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/sys-include    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -O2  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fPIC -fno-inline -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include  -DHAVE_CC_TLS  -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c        \
     -o eh_dummy.o;                \
  objects=eh_dummy.o;                \
fi;                            \
/opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/bin/ar  rc libgcc.a $objects
/opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/bin/ranlib libgcc.a
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
/usr/bin/make install-leaf DESTDIR=../.././gcc \
  slibdir= libsubdir= MULTIOSDIR=.
make[3]: Entering directory '/opt/buildroot-2018.08.2/output/build/host-gcc-initial-7.3.0/build/arm-buildroot-linux-gnueabihf/libgcc'
/bin/bash ../../../libgcc/../mkinstalldirs ../.././gcc
/usr/bin/install -c -m 644 libgcc.a ../.././gcc/
chmod 644 ../.././gcc/libgcc.a
/opt/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/bin/ranlib ../.././gcc/libgcc.a
/usr/bin/install -c -m 644 libg

晕哥帮我瞄一下啊。谢谢了

#51 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3s buildroot 一键生成打包生成32M spi flash 镜像, jffs2 文件系统, 默认启动 Qt 模拟时钟demo, » 2019-07-11 14:48:47

失败了。。。。。

/usr/bin/install -c -m 644 fonts.dtd '/opt/buildroot-2018.08.2/output/target/usr/share/xml/fontconfig'
make[3]: Leaving directory '/opt/buildroot-2018.08.2/output/build/fontconfig-2.12.4'
make[2]: Leaving directory '/opt/buildroot-2018.08.2/output/build/fontconfig-2.12.4'
make[1]: Leaving directory '/opt/buildroot-2018.08.2/output/build/fontconfig-2.12.4'
>>> liberation 2.00.1 Downloading
--2019-07-11 14:14:45--  https://releases.pagure.org/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz
Resolving releases.pagure.org (releases.pagure.org)... 140.211.169.204, 2605:bc80:3010:600:dead:beef:cafe:fed8
Connecting to releases.pagure.org (releases.pagure.org)|140.211.169.204|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2285857 (2.2M) [application/x-gzip]
Saving to: ‘/opt/buildroot-2018.08.2/output/build/.liberation-fonts-ttf-2.00.1.tar.gz.Ve5FyB/output’

ttf-2.00.1.tar.gz.Ve5FyB/output                     57%[===============================================================>                                                ]   1.26M  2.37KB/s    eta 4m 47s
/opt/buildroot-2018.08.2/output/build/.liberation-  58%[================================================================>                                               ]   1.27M  2.43KB/s    in 6m 31s 

2019-07-11 14:36:20 (3.31 KB/s) - Read error at byte 1327104/2285857 (Success). Retrying.

--2019-07-11 14:36:21--  (try: 2)  https://releases.pagure.org/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz
Connecting to releases.pagure.org (releases.pagure.org)|140.211.169.204|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 2285857 (2.2M), 958753 (936K) remaining [application/x-gzip]
Saving to: ‘/opt/buildroot-2018.08.2/output/build/.liberation-fonts-ttf-2.00.1.tar.gz.Ve5FyB/output’

/opt/buildroot-2018.08.2/output/build/.liberation-  68%[+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++===========>                                   ]   1.50M  1.78KB/s    in 2m 15s 

2019-07-11 14:38:42 (1.78 KB/s) - Connection closed at byte 1572864. Retrying.

--2019-07-11 14:38:44--  (try: 3)  https://releases.pagure.org/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz
Connecting to releases.pagure.org (releases.pagure.org)|140.211.169.204|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 2285857 (2.2M), 712993 (696K) remaining [application/x-gzip]
Saving to: ‘/opt/buildroot-2018.08.2/output/build/.liberation-fonts-ttf-2.00.1.tar.gz.Ve5FyB/output’

/opt/buildroot-2018.08.2/output/build/.liberation- 100%[+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==================================>]   2.18M  3.16KB/s    in 3m 2s   

2019-07-11 14:41:49 (3.83 KB/s) - ‘/opt/buildroot-2018.08.2/output/build/.liberation-fonts-ttf-2.00.1.tar.gz.Ve5FyB/output’ saved [2285857/2285857]

liberation-fonts-ttf-2.00.1.tar.gz: OK (sha256: 7890278a6cd17873c57d9cd785c2d230d9abdea837e96516019c5885dd271504)
>>> liberation 2.00.1 Extracting
gzip -d -c /opt/buildroot-2018.08.2/dl/liberation/liberation-fonts-ttf-2.00.1.tar.gz | tar --strip-components=1 -C /opt/buildroot-2018.08.2/output/build/liberation-2.00.1   -xf -
>>> liberation 2.00.1 Patching
>>> liberation 2.00.1 Configuring
>>> liberation 2.00.1 Building
>>> liberation 2.00.1 Installing to target
mkdir -p /opt/buildroot-2018.08.2/output/target/usr/share/fonts/liberation
/usr/bin/install -m 644 /opt/buildroot-2018.08.2/output/build/liberation-2.00.1/LiberationMono*.ttf /opt/buildroot-2018.08.2/output/target/usr/share/fonts/liberation
/usr/bin/install -m 644 /opt/buildroot-2018.08.2/output/build/liberation-2.00.1/LiberationSans*.ttf /opt/buildroot-2018.08.2/output/target/usr/share/fonts/liberation
/usr/bin/install -m 644 /opt/buildroot-2018.08.2/output/build/liberation-2.00.1/LiberationSerif*.ttf /opt/buildroot-2018.08.2/output/target/usr/share/fonts/liberation
>>> fbterm 1.7.0 Downloading
--2019-07-11 14:41:51--  https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/fbterm/fbterm-1.7.0.tar.gz
Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.200.240, 2404:6800:4008:802::2010
Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.200.240|:443... connected.
Unable to establish SSL connection.
--2019-07-11 14:42:40--  http://sources.buildroot.net/fbterm/fbterm-1.7.0.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... failed: Name or service not known.
wget: unable to resolve host address ‘sources.buildroot.net’
--2019-07-11 14:42:50--  http://sources.buildroot.net/fbterm-1.7.0.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... failed: Name or service not known.
wget: unable to resolve host address ‘sources.buildroot.net’
package/pkg-generic.mk:135: recipe for target '/opt/buildroot-2018.08.2/output/build/fbterm-1.7.0/.stamp_downloaded' failed
make: *** [/opt/buildroot-2018.08.2/output/build/fbterm-1.7.0/.stamp_downloaded] Error 1
root@pqfeng-virtual-machine:/opt/buildroot-2018.08.2#

#52 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么我有库,却不能编译通过,说找不到库。谢谢。 » 2018-12-19 10:55:14

pqfeng
回复: 3

-rwxr-xr-x 1 root root  964991 Oct 18 17:59 libjpeg.so.9.1.0
-rwxr-xr-x 1 root root  431620 Oct 18 17:58 libm-2.23.so
lrwxrwxrwx 1 root root      12 Oct 18 17:58 libm.so.6 -> libm-2.23.so
-rwxr-xr-x 1 root root   63364 Oct 18 17:58 libnsl-2.23.so
lrwxrwxrwx 1 root root      14 Oct 18 17:58 libnsl.so.1 -> libnsl-2.23.so
-rwxr-xr-x 1 root root   22060 Oct 18 17:59 libnss_dns-2.23.so
lrwxrwxrwx 1 root root      18 Oct 18 17:58 libnss_dns.so.2 -> libnss_dns-2.23.so
-rwxr-xr-x 1 root root   34412 Oct 18 17:58 libnss_files-2.23.so
lrwxrwxrwx 1 root root      20 Oct 18 17:59 libnss_files.so.2 -> libnss_files-2.23.so
-rwxr-xr-x 1 root root  115588 Oct 18 17:58 libpthread-2.23.so
lrwxrwxrwx 1 root root      18 Oct 18 17:58 libpthread.so.0 -> libpthread-2.23.so
-rwxr-xr-x 1 root root   63216 Oct 18 17:58 libresolv-2.23.so
lrwxrwxrwx 1 root root      17 Oct 18 17:58 libresolv.so.2 -> libresolv-2.23.so
-rwxr-xr-x 1 root root   30676 Oct 18 17:58 librt-2.23.so
lrwxrwxrwx 1 root root      13 Oct 18 17:58 librt.so.1 -> librt-2.23.so
-rwxr-xr-x 1 root root     945 Oct 18 17:59 libts.la
-rwxr-xr-x 1 root root     946 Oct 18 17:59 libts.lai
-rwxr-xr-x 1 root root   12294 Oct 18 17:59 libts.so
-rwxr-xr-x 1 root root   12294 Oct 18 17:59 libts.so.0
-rwxr-xr-x 1 root root   12294 Oct 18 17:59 libts.so.0.8.0
-rwxr-xr-x 1 root root   17980 Oct 18 17:59 libutil-2.23.so
lrwxrwxrwx 1 root root      15 Oct 18 17:58 libutil.so.1 -> libutil-2.23.so
drwxr-xr-x 3 root root    4096 Dec 19 09:09 share
pqfeng@ubuntu:/opt/rootfs/lib$ cd /home/pqfeng/kadiuart/
pqfeng@ubuntu:~/kadiuart$ ls
bitmap.c         configtxt.c       dataproc.c  ebfont.h          jconfig.h    jpegcodec.o  libfile.o    libts.lai        message.h     osdecode.o  qrcnv.o       rtfdecode.o    ts.c          utf8decode.o
bitmap.h         configtxt.h       dataproc.h  ebfont.o          jdct.h       jpeg.h       libjpeg.a    libts.so         modbus.c      os.h        qr_dwtable.h  slidescreen.c  tslib.h       utf8table.c
bitmap.o         configtxt.o       dataproc.o  gb23122unicode.c  jerror.h     jpegint.h    libjpeg.la   libuartscreen.a  modbus.h      psimage.h   qr.h          slidescreen.o  ts.o          utf8table.o
calibrate.c      crc.h             dispctrl.c  gb23122unicode.o  jinclude.h   jpeglib.h    libjpeg.lai  Makefile         modbus.o      PY_code.h   qr.o          stackopea.c    uartmain.c    wordcodec.c
calibrate.o      d2k_discrpit.c    dispctrl.o  HZ_input.c        jmemsys.h    Kadi_Set     libjpeg.so   memblock.c       os_command.c  qr.c        qr_private.h  stackopea.h    uartmain.h    wordcodec.o
common.h         d2k_discrpit.o    ebcommon.c  HZ_input.o        jmorecfg.h   kdcommand.c  libserial.c  memblock.o       os_command.o  qrcmd.h     qr_util.h     stackopea.o    uartmain.o
communication.c  d2k_formatlast.c  ebcommon.o  imagebase.c       jpegcodec.c  kdcommand.o  libserial.o  messagecycle.c   osdecode.c    qrcnv.c     rtfdecode.c   toucharea.c    utf8decode.c
communication.o  d2k_formatlast.o  ebfont.c    imagebase.o       jpegcodec.h  libfile.c    libts.la     messagecycle.o   osdecode.h    qrcnv.h     rtfdecode.h   toucharea.o    utf8decode.h
pqfeng@ubuntu:~/kadiuart$ make
arm-linux-gnueabihf-gcc -L/opt/rootfs/lib/ -L/opt/rootfs/lib/lib -L/opt/rootfs/lib/lib/ts -L. -lpthread -lm -lc -lts -ljpeg   os_command.o kdcommand.o messagecycle.o d2k_formatlast.o memblock.o imagebase.o configtxt.o slidescreen.o utf8decode.o toucharea.o modbus.o d2k_discrpit.o ebcommon.o qrcnv.o bitmap.o qr.o osdecode.o HZ_input.o communication.o utf8table.o jpegcodec.o libfile.o ts.o gb23122unicode.o rtfdecode.o wordcodec.o ebfont.o libserial.o uartmain.o calibrate.o stackopea.o dataproc.o dispctrl.o  -o kadiuart
kdcommand.o: In function `kdCmd_SQRT':
kdcommand.c:(.text+0x25b6): undefined reference to `sqrt'
kdcommand.c:(.text+0x25ea): undefined reference to `sqrt'
kdcommand.c:(.text+0x2622): undefined reference to `sqrt'
imagebase.o: In function `ImageRotate':
imagebase.c:(.text+0x1528): undefined reference to `sin'
imagebase.c:(.text+0x1556): undefined reference to `cos'
imagebase.o: In function `DrawArcToImg':
imagebase.c:(.text+0x2e90): undefined reference to `cos'
imagebase.c:(.text+0x2ee2): undefined reference to `sin'
imagebase.c:(.text+0x2f34): undefined reference to `cos'
imagebase.c:(.text+0x2f86): undefined reference to `sin'
imagebase.c:(.text+0x304c): undefined reference to `sqrt'
imagebase.c:(.text+0x310e): undefined reference to `sqrt'
imagebase.o: In function `DrawFillArcOnImg':
imagebase.c:(.text+0x40ac): undefined reference to `cos'
imagebase.c:(.text+0x40fe): undefined reference to `sin'
imagebase.c:(.text+0x4150): undefined reference to `cos'
imagebase.c:(.text+0x41a2): undefined reference to `sin'
imagebase.c:(.text+0x4286): undefined reference to `sqrt'
imagebase.c:(.text+0x4348): undefined reference to `sqrt'
imagebase.o: In function `MakeSectorMask':
imagebase.c:(.text+0x4882): undefined reference to `cos'
imagebase.c:(.text+0x48d4): undefined reference to `sin'
imagebase.c:(.text+0x4926): undefined reference to `cos'
imagebase.c:(.text+0x4978): undefined reference to `sin'
imagebase.c:(.text+0x4a64): undefined reference to `sqrt'
imagebase.c:(.text+0x4afe): undefined reference to `sqrt'

#53 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » USB枚举设备出错。。。。。。 » 2018-12-10 17:23:29

目前已经好了,我把原来USB参数全部复原后,在原来的基础上只多加了打开一个:usb mass storage 的选项,其他的没有再多加,现在已经OK了。

#54 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » USB枚举设备出错。。。。。。 » 2018-12-10 16:27:13

原来是好的。能正常反应,只是枚举不对,然后我让硬件加了一个电阻,然后修改了一下USB的配置,现在启动起来是正常的。但却不能枚举了。。。
不知道是哪里的错。。。。

#55 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » USB枚举设备出错。。。。。。 » 2018-12-10 15:35:50

[    0.928517] libphy: stmmac: probed
[    0.933997] usbcore: registered new interface driver rtl8192cu
[    0.939960] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.946486] ehci-platform: EHCI generic platform driver
[    0.952058] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.957741] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.965669] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.997014] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.004328] hub 1-0:1.0: USB hub found
[    1.008278] hub 1-0:1.0: 1 port detected
[    1.012851] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.019153] ohci-platform: OHCI generic platform driver
[    1.024710] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.031434] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.039399] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.112080] hub 2-0:1.0: USB hub found
[    1.115907] hub 2-0:1.0: 1 port detected
[    1.123088] usbcore: registered new interface driver usb-storage
[    1.129464] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
[    1.136280] musb-sunxi: probe of 1c19000.usb failed with error -22
[    1.143334] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0

#56 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » USB枚举设备出错。。。。。。 » 2018-12-10 11:07:19

pqfeng
回复: 6

# [   42.516880] usb 2-1: new full-speed USB device number 2 using ohci-platform
Jan  1 00:00:47 buildroot user.info kernel: [   42.516880] usb 2-1: new full-speed USB device number 2 using ohci-platform
[   42.726887] usb 2-1: device descriptor read/64, error -62
Jan  1 00:00:47 buildroot user.err kernel: [   42.726887] usb 2-1: device descriptor read/64, error -62
[   43.046886] usb 2-1: device descriptor read/64, error -62
Jan  1 00:00:48 buildroot user.err kernel: [   43.046886] usb 2-1: device descriptor read/64, error -62
[   43.366883] usb 2-1: new full-speed USB device number 3 using ohci-platform
Jan  1 00:00:48 buildroot user.info kernel: [   43.366883] usb 2-1: new full-speed USB device number 3 using ohci-platform
[   43.576887] usb 2-1: device descriptor read/64, error -62
Jan  1 00:00:48 buildroot user.err kernel: [   43.576887] usb 2-1: device descriptor read/64, error -62
[   43.896887] usb 2-1: device descriptor read/64, error -62
Jan  1 00:00:48 buildroot user.err kernel: [   43.896887] usb 2-1: device descriptor read/64, error -62
[   44.216885] usb 2-1: new full-speed USB device number 4 using ohci-platform
Jan  1 00:00:49 buildroot user.info kernel: [   44.216885] usb 2-1: new full-speed USB device number 4 using ohci-platform
[   44.656884] usb 2-1: device not accepting address 4, error -62
Jan  1 00:00:49 buildroot user.err kernel: [   44.656884] usb 2-1: device not accepting address 4, error -62
[   44.856892] usb 2-1: new full-speed USB device number 5 using ohci-platform
Jan  1 00:00:49 buildroot user.info kernel: [   44.856892] usb 2-1: new full-speed USB device number 5 using ohci-platform
[   45.296892] usb 2-1: device not accepting address 5, error -62
[   45.302833] usb usb2-port1: unable to enumerate USB device
Jan  1 00:00:50 buildroot user.err kernel: [   45.296892] usb 2-1: device not accepting address 5, error -62
Jan  1 00:00:50 buildroot user.err kernel: [   45.302833] usb usb2-port1: unable to enumerate USB device

#63 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,屏幕花屏,有哪些情况 » 2018-12-06 11:58:04

这里如何贴图?这个BBCode不会用啊,要不我把图片放到QQ群里吧?













补图:

QQ20181206134827.jpg

#64 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,屏幕花屏,有哪些情况 » 2018-12-06 10:43:57

pqfeng
回复: 5

请教一下,如果屏幕花屏,感觉是显示驱动没成功,,,参数是正确的(屏相关参数是在别的平台上移过来的),那么有哪些情况会导致屏不能正常工作?

#65 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下:PF1 未保留是啥意思??? » 2018-12-05 14:39:37

## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff121 ... OK
PF: dir_output: error: gpio PF1 not reserved
PF: dir_output: error: gpio PF5 not reserved
PF: set_value: error: gpio PF5 not reserved
PF: set_value: error: gpio PF1 not reserved
PF: dir_output: error: gpio PF0 not reserved
PF: set_value: error: gpio PF0 not reserved
PF: set_value: error: gpio PF5 not reserved
PF: set_value: error: gpio PF1 not reserved

不单是这个原因呢

#66 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下:PF1 未保留是啥意思??? » 2018-12-05 14:30:25

gpio_direction_output(SUNXI_GPF(LCD_SCLK),1);
    gpio_direction_output(SUNXI_GPF(LCD_CS),1);

    sunxi_gpio_set_pull(SUNXI_GPF(LCD_SCLK),SUNXI_GPIO_PULL_UP);       
    sunxi_gpio_set_pull(SUNXI_GPF(LCD_CS), SUNXI_GPIO_PULL_UP);   

    gpio_set_value(SUNXI_GPF(LCD_CS), 1);
    gpio_set_value(SUNXI_GPF(LCD_SCLK), 1);

我没把这些GPIO添加到DTS里去。现在加一下试试

#69 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » Wlan0加载成功,驱动没有问题,固件也有,但最后报nolinked power save enter。还无法中断,这是什么情况? » 2018-12-01 12:56:09

pqfeng
回复: 6

Starting logging: OK
Initializing random number generator... done.
Starting network: OK
[   13.186727] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[   13.204556] RTL8723BS: module init start
[   13.208645] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[   13.215688] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[   13.222278] pqfeng debug ret = 0
[   13.227857] pnetdev = c2a38800
[   13.267472] RTL8723BS: rtw_ndev_init(wlan0)
[   13.273210] RTL8723BS: module init ret =0
[   13.293138] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Priority group 5
   id=0 ssid='debugdump'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x179dc8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x179dc8 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=4 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: 08:d8:33:df:a9:66
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 96327dcd-1712-506e-9df3-babe97102e33
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
[   24.379799] RTL8723BS: nolinked power save enter
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
[   29.440492] RTL8723BS: nolinked power save leave
[   31.639653] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[   36.650525] RTL8723BS: nolinked power save leave
[   38.850279] RTL8723BS: nolinked power save enter
[   43.860483] RTL8723BS: nolinked power save leave
^C[   46.059757] RTL8723BS: nolinked power save enter
[   51.070686] RTL8723BS: nolinked power save leave
[   53.270313] RTL8723BS: nolinked power save enter
udhcpc: sending discover
udhcpc: sending discover
[   58.280438] RTL8723BS: nolinked power save leave
[   60.479732] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[   65.490646] RTL8723BS: nolinked power save leave
[   67.689747] RTL8723BS: nolinked power save enter
[   72.690612] RTL8723BS: nolinked power save leave
[   74.889774] RTL8723BS: nolinked power save enter
[   79.900622] RTL8723BS: nolinked power save leave
[   82.099752] RTL8723BS: nolinked power save enter
udhcpc: sending discover
udhcpc: sending discover
[   87.110626] RTL8723BS: nolinked power save leave
[   89.309749] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[   94.320633] RTL8723BS: nolinked power save leave
[   96.519755] RTL8723BS: nolinked power save enter
[  101.530638] RTL8723BS: nolinked power save leave
[  103.729541] RTL8723BS: nolinked power save enter
[  108.740614] RTL8723BS: nolinked power save leave
[  110.939714] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[  115.950477] RTL8723BS: nolinked power save leave
udhcpc: sending discover
[  118.149736] RTL8723BS: nolinked power save enter
udhcpc: sending discover
[

#70 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 晕哥,帮我看一下,为什么不支持Wlan0? » 2018-12-01 12:51:50

问题搞定了,最终结果是出在DTS上。我们的DTS有两个,一个是带dock 的,但带dock 包含了不带dock的

#71 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 大神请教一下:带不带dock有什么分别? » 2018-12-01 12:40:21

pqfeng
回复: 1

sun8i-v3s-licheepi-zero.dts 与sun8i-v3s-licheepi-zero-dock.dts 生成的dtb有什么分别:

#72 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 晕哥,帮我看一下,为什么不支持Wlan0? » 2018-11-30 09:18:31

加了那个固件,依然不行。然后我仔细看了你的行的Log
[   16.239703] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[   16.252467] pnetdev = c32a8000
[   16.290725] RTL8723BS: rtw_ndev_init(wlan0)
[   16.316665] RTL8723BS: module init ret =0
/mnt/application1 # ifconfig wlan0 up
[   20.521254] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[   20.720639] random: crng init done

#73 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 晕哥,帮我看一下,为什么不支持Wlan0? » 2018-11-29 19:59:31

他们的Wifi,ifconfig 一下就OK了,但我的,根本没有啊。。。。。有显示就没有问题了。
#  ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: No such device

#75 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 晕哥,帮我看一下,为什么不支持Wlan0? » 2018-11-29 19:51:13

pqfeng
回复: 8

# cp /mnt/nfsroot/r8723bs.ko .
# insmod r8723bs.ko
[  158.179695] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[  158.196453] RTL8723BS: module init start
[  158.200559] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[  158.207627] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[  158.214255] RTL8723BS: module init ret =0
# sudo ifconfig wlan0 up
-sh: sudo: not found
#  ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: No such device
# cd /etc/
# ls
fstab          init.d         mtab           passwd         random-seed
group          inittab        network        profile        resolv.conf
hostname       issue          nsswitch.conf  profile.d      services
hosts          mdev.conf      os-release     protocols      shadow
# cd ..
# ls
V3S      etc      linuxrc  opt      run      tmp
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:00:FA:05:23:BB
          inet addr:192.168.1.134  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:793 errors:0 dropped:0 overruns:0 frame:0
          TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:757125 (739.3 KiB)  TX bytes:24250 (23.6 KiB)
          Interrupt:37 Base address:0xd000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#

#76 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 临到最后还是出错。。。无语中,看不出少了什么东西。。。。。请哪位指点一下。谢谢啊 » 2018-11-29 18:11:24

问题好了。应该是根文件系统的问题。具体 是什么问题还不知道。但用以前的一个根文件系统就没有这个问题了。
多谢了。

#77 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 临到最后还是出错。。。无语中,看不出少了什么东西。。。。。请哪位指点一下。谢谢啊 » 2018-11-29 17:22:33

pqfeng
回复: 2

[    6.492629] devtmpfs: mounted
[    6.497000] Freeing unused kernel memory: 1024K
[    7.514076] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttl                      ing...
[   12.566941] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 sec                      onds now
[   12.582711] Starting init: /sbin/init exists but couldn't execute it (error -8)
[   12.648011] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttl                      ing...
[   17.686917] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 sec                      onds now
[   17.702552] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   17.720891] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Docum                      entation/admin-guide/init.rst for guidance.
[   17.735046] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[   17.742343] Hardware name: Allwinner sun8i Family
[   17.747085] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[   17.754829] [<c010b358>] (show_stack) from [<c0680374>] (dump_stack+0x94/0xa8)
[   17.762052] [<c0680374>] (dump_stack) from [<c011b614>] (panic+0xdc/0x254)
[   17.768926] [<c011b614>] (panic) from [<c06931c0>] (kernel_init+0x100/0x110)
[   17.775971] [<c06931c0>] (kernel_init) from [<c01076b8>] (ret_from_fork+0x14/0x3c)
[   17.783544] Rebooting in 5 seconds..

#79 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 各位帮我看一下。 » 2018-11-29 12:42:51

我重新下了4.13.版的源代码来编译,终于可以识别到分区了。可是不能正确引导。。。。。吐血。。。。前面的问题,经过对比,发现是dts的问题。
[    3.906083] jffs2: Empty flash at 0x00ae9ffc ends at 0x00aea000
[    3.912798] jffs2: Empty flash at 0x00aeaffc ends at 0x00aeb000
[    3.919478] jffs2: Empty flash at 0x00aebf7c ends at 0x00aec000
[    3.926131] jffs2: Empty flash at 0x00aecffc ends at 0x00aed000
[    3.932827] jffs2: Empty flash at 0x00aedffc ends at 0x00aee000
[    3.939513] jffs2: Empty flash at 0x00aeeffc ends at 0x00aef000
[    3.945855] jffs2: error: (1) jffs2_build_filesystem: child dir "network" (ino #100) of dir ino #4 is also hard linked from dir ino #1
[    3.960607] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    3.968861] devtmpfs: error mounting -20
[    3.974121] Freeing unused kernel memory: 1024K

[    4.669463] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[    9.686886] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[    9.702258] Starting init: /sbin/init exists but couldn't execute it (error -8)

[    9.764321] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[   14.806920] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   14.822672] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   14.841017] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   14.855171] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[   14.862467] Hardware name: Allwinner sun8i Family
[   14.867209] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[   14.874952] [<c010b358>] (show_stack) from [<c0680374>] (dump_stack+0x94/0xa8)
[   14.882175] [<c0680374>] (dump_stack) from [<c011b614>] (panic+0xdc/0x254)


新的问题又出来了。。。。哪位兄弟帮我解答一下。谢谢了。

#80 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 各位帮我看一下。 » 2018-11-29 10:45:41

好的,也只有这个方法来试试了。多谢方法

#81 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 各位帮我看一下。 » 2018-11-29 09:25:14

嗯。连轮都轮不了。。。。。。因为我现在是用的新的板。公司的,把串口改到2去了。原来的,全部用不了。。。这才是最坑爹的地方。。。。

#82 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 各位帮我看一下。 » 2018-11-29 09:08:03

我照着文档对了一轮,menuconfig中没有问题,那些其他参数也都是对的。却查不到问题在哪里。。。。。真的是很坑爹。

#83 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 各位帮我看一下。 » 2018-11-29 08:55:10

pqfeng
回复: 12

我的SPI flash启动不起来,不知道为什么。。。。
[    0.819749] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.824837] spi0.0: parser cmdlinepart: 0
[    0.828928] spi0.0: parser ofpart: 0
以上是Log信息。也确认命令行内容是没有问题的。
却解析不出分区信息来。不知道为什么。

#84 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-29 08:36:55

我看起来,它是解析分区表时出错了。解析不出来。不知道这是为什么。

#85 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 21:15:39

我看了一下,仔细对了一下,没有问题,原来提是ttys0,我们现在的是s2,能正常打印,说明这个是没有问题的

#86 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 20:45:58

cmdline应该没有问题啊。 Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2     你说dts没有分区信息。dts本来就没有吧??
没理解啊

#87 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 20:29:42

[    0.053682] io scheduler noop registered
[    0.053689] io scheduler deadline registered
[    0.053974] io scheduler cfq registered (default)
[    0.053985] io scheduler mq-deadline registered
[    0.053991] io scheduler kyber registered
[    0.058525] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.150999] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.172606] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.813121] console [ttyS2] enabled
[    0.820066] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.825236] spi0.0: parser cmdlinepart: 0
[    0.829247] spi0.0: parser ofpart: 0
[    0.833819] libphy: Fixed MDIO Bus: probed
[    0.838487] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.844283] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.850082] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.856122] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)

#88 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 20:29:02

[    0.053682] io scheduler noop registered
[    0.053689] io scheduler deadline registered
[    0.053974] io scheduler cfq registered (default)
[    0.053985] io scheduler mq-deadline registered
[    0.053991] io scheduler kyber registered
[    0.058525] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.150999] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.172606] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.813121] console [ttyS2] enabled
[    0.820066] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.825236] spi0.0: parser cmdlinepart: 0
[    0.829247] spi0.0: parser ofpart: 0
[    0.833819] libphy: Fixed MDIO Bus: probed
[    0.838487] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.844283] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.850082] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.856122] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)

#89 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 20:27:27

[    0.819690] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.824773] spi0.0: parser cmdlinepart: 0
[    0.828863] spi0.0: parser ofpart: 0
[    0.833451] libphy: Fixed MDIO Bus: probed

我看了一下,但问题还是没有解决。它把主频从50M改成16M,我改了,但没有任何变化

#90 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-11-28 19:41:19

pqfeng
回复: 24

log 日志如下:
为什么打印中没有显示jffs2的那个表??加载不成功啊。

sunxi_display.monitor = 3
sunxi_display.depth = 18
sunxi_display.fb_size  = 2457600,1024, 600
Setting up a 1024x600 lcd console (overscan 0x0)
gd->bd->bi_dram[0].start = 1073741824,  67108864, 2457600
dotclock: 48000kHz = 48000kHz: (1 * 3MHz * 96) / 6
In:    serial@01c28800
Out:   serial@01c28800
Err:   serial@01c28800
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffc6a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (pqfeng@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)) #66 SMP Wed Nov 28 16:42:23 CST 2018
[    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: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3d07000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15660
[    0.000000] Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    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: 52684K/63136K available (6144K kernel code, 218K rwdata, 1500K rodata, 1024K init, 266K bss, 10452K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3da8000   (  61 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a36b40   ( 219 kB)
[    0.000000]        .bss : 0xc0a3db44 - 0xc0a8037c   ( 267 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000309] 44444444444444444444444444444444444444444444444
[    0.000408] Console: colour dummy device 80x30
[    0.000440] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000455] pid_max: default: 32768 minimum: 301
[    0.000501] 5555555555555555555555555555555555555555
[    0.000595] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000609] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001211] 6666666666666666666666666666666666666666666666
[    0.001232] CPU: Testing write buffer coherency: ok
[    0.001269] 7777777777777777777777777777777777777777777777
[    0.001590] /cpus/cpu@0 missing clock-frequency property
[    0.001615] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002061] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002238] Hierarchical SRCU implementation.
[    0.002750] smp: Bringing up secondary CPUs ...
[    0.002764] smp: Brought up 1 node, 1 CPU
[    0.002773] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002781] CPU: All CPU(s) started in SVC mode.
[    0.003554] devtmpfs: initialized
[    0.006649] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006920] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006951] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007123] pinctrl core: initialized pinctrl subsystem
[    0.008023] random: get_random_u32 called from bucket_table_alloc+0xf0/0x240 with crng_init=0
[    0.008165] NET: Registered protocol family 16
[    0.008659] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009824] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009846] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022272] SCSI subsystem initialized
[    0.022561] usbcore: registered new interface driver usbfs
[    0.022629] usbcore: registered new interface driver hub
[    0.022726] usbcore: registered new device driver usb
[    0.022948] Linux video capture interface: v2.00
[    0.023010] pps_core: LinuxPPS API ver. 1 registered
[    0.023017] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023040] PTP clock support registered
[    0.023256] Advanced Linux Sound Architecture Driver Initialized.
[    0.025114] clocksource: Switched to clocksource arch_sys_counter
[    0.025630] ggggggggggggggggggggggggggggggggggggg
[    0.026084] fffffffffffffffffffffffffffffffffffff
[    0.036261] NET: Registered protocol family 2
[    0.036875] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036907] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036930] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037062] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037110] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037320] NET: Registered protocol family 1
[    0.037912] RPC: Registered named UNIX socket transport module.
[    0.037931] RPC: Registered udp transport module.
[    0.037937] RPC: Registered tcp transport module.
[    0.037943] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039849] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049119] NFS: Registering the id_resolver key type
[    0.049173] Key type id_resolver registered
[    0.049180] Key type id_legacy registered
[    0.049199] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.049235] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.050696] random: fast init done
[    0.053518] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053541] io scheduler noop registered
[    0.053548] io scheduler deadline registered
[    0.053836] io scheduler cfq registered (default)
[    0.053847] io scheduler mq-deadline registered
[    0.053854] io scheduler kyber registered
[    0.058356] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126995] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.150661] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.172256] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.812766] console [ttyS2] enabled
[    0.819690] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.824773] spi0.0: parser cmdlinepart: 0
[    0.828863] spi0.0: parser ofpart: 0
[    0.833451] libphy: Fixed MDIO Bus: probed
[    0.838117] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.843910] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.849714] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.855746] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.865200] aaaaaaaaaaaaaaaaaaaaa
[    0.868539] bbbbbbbbbbbbbbbbbbbbb
[    0.871873] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.877548] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.884762] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.890428] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.897653] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.902612] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.909602] libphy: stmmac: probed
[    0.914832] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.921495] ehci-platform: EHCI generic platform driver
[    0.926910] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.933122] ohci-platform: OHCI generic platform driver
[    0.939625] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.946517] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.951074] i2c /dev entries driver
[    0.955563] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.015162] sunxi-mmc 1c0f000.mmc: base:0xc406d000 irq:23
[    1.021604] usbcore: registered new interface driver usbhid
[    1.027263] usbhid: USB HID core driver
[    1.032946] NET: Registered protocol family 17
[    1.037657] Key type dns_resolver registered
[    1.042085] Registering SWP/SWPB emulation handler
[    1.052757] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0xc4500000
[    1.063406] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    1.085479] Console: switching to colour frame buffer device 128x37
[    1.101379] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[    1.109988] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.121410] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.127268] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.136497] hub 1-0:1.0: USB hub found
[    1.140369] hub 1-0:1.0: 1 port detected
[    1.148933] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:28:41 UTC (1721)
[    1.157428] vcc3v0: disabling
[    1.160402] vcc5v0: disabling
[    1.163366] ALSA device list:
[    1.166389]   No soundcards found.
[    1.170731] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    1.178400] Please append a correct "root=" boot option; here are the available partitions:
[    1.186776] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.195122] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #66
[    1.202504] Hardware name: Allwinner sun8i Family
[    1.207244] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[    1.214989] [<c010b358>] (show_stack) from [<c068c234>] (dump_stack+0x94/0xa8)
[    1.222211] [<c068c234>] (dump_stack) from [<c011b594>] (panic+0xdc/0x254)
[    1.229089] [<c011b594>] (panic) from [<c0901120>] (mount_block_root+0x204/0x2c8)
[    1.236567] [<c0901120>] (mount_block_root) from [<c09013ac>] (prepare_namespace+0x14c/0x190)
[    1.245085] [<c09013ac>] (prepare_namespace) from [<c0900e00>] (kernel_init_freeable+0x1d0/0x1e0)
[    1.253950] [<c0900e00>] (kernel_init_freeable) from [<c069ef88>] (kernel_init+0x8/0x110)
[    1.262122] [<c069ef88>] (kernel_init) from [<c01076b8>] (ret_from_fork+0x14/0x3c)
[    1.269695] Rebooting in 5 seconds..

#91 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么我的Git命令一运行,就挂掉? » 2018-11-28 19:39:34

我在服务器上不行。 直接转到虚拟机上解决的。没去纠结这个问题。

#92 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,为什么我没有用到dock,却会报dock错误。 » 2018-11-28 11:07:14

pqfeng
回复: 1

CC      lib/random32.o
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb
  AR      arch/arm/lib/lib.a
Error: arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts:62.1-7 Label or path codec not found
Error: arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts:82.1-7 Label or path lradc not found
FATAL ERROR: Syntax error parsing input tree
scripts/Makefile.lib:325: recipe for target 'arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb' failed
make[1]: *** [arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb] Error 1
arch/arm/Makefile:346: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
make: *** Waiting for unfinished jobs....
  EXPORTS arch/arm/lib/lib-ksyms.o
  CC      lib/bust_spinlocks.o
  CC      fs/namei.o

#93 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么我的Git命令一运行,就挂掉? » 2018-11-28 09:26:04

pqfeng
回复: 3

pqfeng@ubuntu:~/kernel413$ git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
Cloning into 'linux'...
fatal: bad config file line 1 in /home/pqfeng/kernel413/linux/.git/config

我确定kernel413是一个空目录。

#95 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » Windows下如何支持Sunxi-fel烧写? » 2018-11-26 16:29:37

pqfeng
回复: 2

我有Window下的sunxi-fel,但Window下识别不到板子。驱动被破坏了?

#98 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 我想把我们的FrameBuffer改成16Bit » 2018-09-19 14:10:43

pqfeng
回复: 4

晕哥,我想把我们的FrameBuffer的BitPerPixel改成16位深,在哪里改靠谱一点?主要是内核的帧缓冲。外面物理接口是666,逻辑层的是32位。想把它改成16位。谢谢。

#99 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为何Mount不上主机。 » 2018-09-17 16:51:31

pqfeng
回复: 1

我把荔枝派的网上调通后,也给主机安装了NFS组件。添加了目录,然后在开发板端Ping通了主机,在mount时却报没权限了。是不是内核里没设置好?请各位高手支支招谢谢。
# mount -t nfs -o nolock 192.168.0.73:/nfskadiuart /mnt
mount: mounting 192.168.0.73:/nfskadiuart on /mnt failed: Permission denied

#100 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么没有mtdblock3? » 2018-09-14 17:03:08

上面内容显示,产生MTD是解析出来了4个区,所以在/dev/下有mtd0,mtd1,mtd2,mtd3,但我通过Mount的方式想把它挂到/mnt目录下,却进行不了。
不知道,要如何进行?mtdblock3,要不要进行格式化?

#101 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么没有mtdblock3? » 2018-09-14 17:01:26

pqfeng
回复: 2

Log内容如下:
4 cmdlinepart partitions found on MTD device spi32766.0
[    0.863704] Creating 4 MTD partitions on "spi32766.0":
[    0.868870] 0x000000000000-0x000000100000 : "uboot"
[    0.874351] 0x000000100000-0x000000110000 : "dtb"
[    0.879546] 0x000000110000-0x000000910000 : "kernel"
[    0.884861] 0x000000910000-0x000001000000 : "rootfs"
[    0.890672] libphy: Fixed MDIO Bus: probed
[    0.895257] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.901785] ehci-platform: EHCI generic platform driver
[    0.907328] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.912959] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.920913] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.955216] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.962425] hub 1-0:1.0: USB hub found
[    0.966369] hub 1-0:1.0: 1 port detected
[    0.970855] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.977153] ohci-platform: OHCI generic platform driver
[    0.982697] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.989416] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.997386] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.070300] hub 2-0:1.0: USB hub found
[    1.074129] hub 2-0:1.0: 1 port detected
[    1.081670] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.091356] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.098253] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.102825] i2c /dev entries driver
[    1.107796] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.117341] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.185428] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:23
[    1.192420] usbcore: registered new interface driver usbhid
[    1.198094] usbhid: USB HID core driver
[    1.203739] NET: Registered protocol family 17
[    1.208430] Key type dns_resolver registered
[    1.212850] Registering SWP/SWPB emulation handler
[    1.223417] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.234077] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.252332] Console: switching to colour frame buffer device 100x30
[    1.264807] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.273357] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.284746] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.290587] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.299677] hub 3-0:1.0: USB hub found
[    1.303536] hub 3-0:1.0: 1 port detected
[    1.308735] using random self ethernet address
[    1.313191] using random host ethernet address
[    1.318810] usb0: HOST MAC 2e:e2:d3:8c:ab:44
[    1.323131] usb0: MAC fe:f5:30:5d:80:8c
[    1.327113] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.334591] g_cdc gadget: g_cdc ready
[    1.338618] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:02:39 UTC (159)
[    1.347023] vcc3v0: disabling
[    1.349998] vcc5v0: disabling
[    1.352963] ALSA device list:
[    1.355980]   No soundcards found.
[    1.359563] Warning: unable to open an initial console.
[    1.367436] Freeing unused kernel memory: 2048K

Welcome to Lichee Pi
Lichee login: root
# ls
# cd ..
# ls
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
etc      linuxrc  opt      run      tmp
# mount -t jffs2 /dev/mtd
mtd0    mtd0ro  mtd1    mtd1ro  mtd2    mtd2ro  mtd3    mtd3ro
# mount -t jffs2 /dev/mtd
mtd0    mtd0ro  mtd1    mtd1ro  mtd2    mtd2ro  mtd3    mtd3ro
# mount -t jffs2 /dev/mtd3 /mnt/
mount: mounting /dev/mtd3 on /mnt/ failed: No such device
# modprob mtdblock3
-sh: modprob: not found
# ls
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
etc      linuxrc  opt      run      tmp
# cd dev/
# ls
bus                 ptyv7               ttyd9
console             ptyv8               ttyda
cpu_dma_latency     ptyv9               ttydb
fb0                 ptyva               ttydc
full                ptyvb               ttydd
gpiochip0           ptyvc               ttyde
i2c-0               ptyvd               ttydf
input               ptyve               ttye0
kmsg                ptyvf               ttye1
log                 ptyw0               ttye2
mem                 ptyw1               ttye3
memory_bandwidth    ptyw2               ttye4
mtd0                ptyw3               ttye5
mtd0ro              ptyw4               ttye6
mtd1                ptyw5               ttye7
mtd1ro              ptyw6               ttye8
mtd2                ptyw7               ttye9
mtd2ro              ptyw8               ttyea
mtd3                ptyw9               ttyeb
mtd3ro              ptywa               ttyec
network_latency     ptywb               ttyed
network_throughput  ptywc               ttyee

#102 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 淘宝上买几片 MX25L512【2.5元】试一试,不知道是卖家弄错价格了,还是拆机件 ... » 2018-09-14 15:39:45

我也中奖了,满心欢喜,以为花一上午时间能把问题解决了,一次性买了8个,哪能想到。。。。。。。。居然是K,,不被晕哥告诉我,还不知道居然也有这种套路。。。。。。。

#105 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » V3S spi FLASH 烧写命令地址 » 2018-09-13 16:24:09

john78 说:

sunxi-fel.exe -p spiflash-write 0 u-boot-sunxi-with-spl.bin
sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin
sunxi-fel.exe -p spiflash-write 0x400000 rootfs_jffs2.bin

是这样吗? 有没有通过的文件,我测试下,是我编译错误还是什么问题
BOOT启动后无反应

starting USB...
No controllers found
Hit any key to stop autoboot:  2  1  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=>


你好,你的这个rootfs_jffs2.bin是有效的吗。能不能借我测试一下?我的总是报错,不知道是什么原因。加个QQ交流一下。2113627805

#107 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么我的系统连Ramdisk也进不去了? » 2018-09-13 10:14:25

去掉也,依然没有变化 。ro 是只读,前面三个文件系统都用了ro

#108 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 为什么我的系统连Ramdisk也进不去了? » 2018-09-13 10:02:07

pqfeng
回复: 10

系统连Ramdisk也进不去了。。。。。。
原来这个配置文件下的文件系统能正常的。相同的参数,突然就不正常了。不知道哪里出了问题。。。。。。。

U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (Sep 12 2018 - 18:06:00)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Sep 12 2018 - 18:06:00 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Sep 12 2018 - 18:06:00 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x900000
SF: 9437184 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41a10000
   Booting using the fdt blob at 0x41a10000
   Loading Device Tree to 42dfa000, end 42dff206 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (pqfeng@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)) #17 SMP Wed Sep 12 18:48:37 PDT 2018
[    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: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de8000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,9M(kernel)ro,-(rootfs) root=/dev/ram0 ro
[    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: 49496K/64036K available (6144K kernel code, 217K rwdata, 1436K rodata, 5120K init, 262K bss, 14540K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0e00000   (5120 kB)
[    0.000000]       .data : 0xc0e00000 - 0xc0e367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0e3d868 - 0xc0e7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000168] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000387] Console: colour dummy device 80x30
[    0.000424] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000439] pid_max: default: 32768 minimum: 301
[    0.000575] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000591] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001199] CPU: Testing write buffer coherency: ok
[    0.001584] /cpus/cpu@0 missing clock-frequency property
[    0.001610] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002047] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002235] Hierarchical SRCU implementation.
[    0.002736] smp: Bringing up secondary CPUs ...
[    0.002753] smp: Brought up 1 node, 1 CPU
[    0.002761] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002768] CPU: All CPU(s) started in SVC mode.
[    0.003544] devtmpfs: initialized
[    0.006022] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006321] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006352] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006520] pinctrl core: initialized pinctrl subsystem
[    0.007389] random: get_random_u32 called from bucket_table_alloc+0xf0/0x240 with crng_init=0
[    0.007523] NET: Registered protocol family 16
[    0.007993] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009086] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009104] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.020614] SCSI subsystem initialized
[    0.020894] usbcore: registered new interface driver usbfs
[    0.020962] usbcore: registered new interface driver hub
[    0.021053] usbcore: registered new device driver usb
[    0.021279] pps_core: LinuxPPS API ver. 1 registered
[    0.021289] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.021310] PTP clock support registered
[    0.021541] Advanced Linux Sound Architecture Driver Initialized.
[    0.023305] clocksource: Switched to clocksource arch_sys_counter
[    0.024172] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[    0.024192] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.031048] Console: switching to colour frame buffer device 100x30
[    0.037190] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.047012] NET: Registered protocol family 2
[    0.047624] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.047659] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.047683] TCP: Hash tables configured (established 1024 bind 1024)
[    0.047828] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.047877] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.048100] NET: Registered protocol family 1
[    0.048701] RPC: Registered named UNIX socket transport module.
[    0.048725] RPC: Registered udp transport module.
[    0.048731] RPC: Registered tcp transport module.
[    0.048737] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.380184] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.389321] NFS: Registering the id_resolver key type
[    0.389378] Key type id_resolver registered
[    0.389386] Key type id_legacy registered
[    0.390366] random: fast init done
[    0.393194] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.393216] io scheduler noop registered
[    0.393224] io scheduler deadline registered
[    0.393602] io scheduler cfq registered (default)
[    0.393616] io scheduler mq-deadline registered
[    0.393624] io scheduler kyber registered
[    0.398105] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.464657] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.468038] console [ttyS0] disabled
[    0.488319] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    1.107409] console [ttyS0] enabled
[    1.114802] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    1.119888] spi32766.0: parser cmdlinepart: 4
[    1.124351] 4 cmdlinepart partitions found on MTD device spi32766.0
[    1.130613] Creating 4 MTD partitions on "spi32766.0":
[    1.135785] 0x000000000000-0x000000100000 : "uboot"
[    1.141312] 0x000000100000-0x000000110000 : "dtb"
[    1.146479] 0x000000110000-0x000000a10000 : "kernel"
[    1.151787] 0x000000a10000-0x000001000000 : "rootfs"
[    1.157565] libphy: Fixed MDIO Bus: probed
[    1.161973] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.168582] ehci-platform: EHCI generic platform driver
[    1.173925] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.180136] ohci-platform: OHCI generic platform driver
[    1.185897] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.195497] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.202291] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.206901] i2c /dev entries driver
[    1.211711] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.221139] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.283347] sunxi-mmc 1c0f000.mmc: base:0xc405f000 irq:23
[    1.289706] usbcore: registered new interface driver usbhid
[    1.295373] usbhid: USB HID core driver
[    1.301302] NET: Registered protocol family 17
[    1.305992] Key type dns_resolver registered
[    1.310405] Registering SWP/SWPB emulation handler
[    1.321722] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.333172] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.339031] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.350259] hub 1-0:1.0: USB hub found
[    1.354246] hub 1-0:1.0: 1 port detected
[    1.359427] using random self ethernet address
[    1.364005] using random host ethernet address
[    1.369521] usb0: HOST MAC 1e:70:f5:9e:da:04
[    1.374000] usb0: MAC 9a:9f:1c:a2:b6:1a
[    1.377905] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.385432] g_cdc gadget: g_cdc ready
[    1.389445] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:23 UTC (23)
[    1.397742] vcc3v0: disabling
[    1.400720] vcc5v0: disabling
[    1.403743] ALSA device list:
[    1.406709]   No soundcards found.
[    1.410900] Waiting for root device /dev/ram0...

#109 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 不知道哪位有Linux4.10的配置好MTD的配置文件,可否共享一下? » 2018-09-12 08:51:04

pqfeng
回复: 0

在经过长时间折腾,始终解决不了MTD的支持问题,导致系统无法正常运行到Console状态。官方提供的V3s_MX25L256_JFFS2_Firmware这个里面的固件就可以,但是却没有提供如何配置MTD的相关参数.(按官方手册提供的MTD支持,SPI支持都加了),以致于系统一直无法启动,故不得已借朋友们的已配置好的系统的配置文件拿来研究学习一番。有配置好的朋友可否共享一下,多谢了。

#110 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何配置MTD ? » 2018-09-11 19:58:40

有的。现在的问题主要是MTD的分区表。只要能读到分区表,我就不用Jff2,直接用tar就OK了。

#112 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何配置MTD ? » 2018-09-11 19:53:06

以下是错误的Log。我自己生成的。
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x600000
SF: 6291456 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffd8e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero+ (pqfeng@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #5 SMP Tue Sep 11 03:12:16 PDT 2018
[    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: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3de8000 s24768 r8192 d24384 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2
[    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: 53600K/64036K available (6144K kernel code, 200K rwdata, 1416K rodata, 1024K init, 294K bss, 10436K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a32040   ( 201 kB)
[    0.000000]        .bss : 0xc0a34000 - 0xc0a7da5c   ( 295 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000154] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000381] Console: colour dummy device 80x30
[    0.000419] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000436] pid_max: default: 32768 minimum: 301
[    0.000570] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000581] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001293] CPU: Testing write buffer coherency: ok
[    0.001705] /cpus/cpu@0 missing clock-frequency property
[    0.001730] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002105] Setting up static identity map for 0x40100000 - 0x40100058
[    0.002856] smp: Bringing up secondary CPUs ...
[    0.002874] smp: Brought up 1 node, 1 CPU
[    0.002882] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002890] CPU: All CPU(s) started in SVC mode.
[    0.003686] devtmpfs: initialized
[    0.007177] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007487] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007513] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007680] pinctrl core: initialized pinctrl subsystem
[    0.008663] NET: Registered protocol family 16
[    0.009134] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010523] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010541] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023831] SCSI subsystem initialized
[    0.024119] usbcore: registered new interface driver usbfs
[    0.024181] usbcore: registered new interface driver hub
[    0.024281] usbcore: registered new device driver usb
[    0.024526] pps_core: LinuxPPS API ver. 1 registered
[    0.024535] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024573] PTP clock support registered
[    0.024799] Advanced Linux Sound Architecture Driver Initialized.
[    0.026682] clocksource: Switched to clocksource arch_sys_counter
[    0.037631] NET: Registered protocol family 2
[    0.038256] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038289] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038313] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038400] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038446] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038671] NET: Registered protocol family 1
[    0.039316] RPC: Registered named UNIX socket transport module.
[    0.039337] RPC: Registered udp transport module.
[    0.039343] RPC: Registered tcp transport module.
[    0.039348] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041646] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.051135] NFS: Registering the id_resolver key type
[    0.051188] Key type id_resolver registered
[    0.051195] Key type id_legacy registered
[    0.051247] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.055843] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.055867] io scheduler noop registered
[    0.055873] io scheduler deadline registered
[    0.056060] io scheduler cfq registered (default)
[    0.060709] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.130490] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133872] console [ttyS0] disabled
[    0.154164] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.725517] console [ttyS0] enabled
[    0.729802] [drm] Initialized
[    0.736191] libphy: Fixed MDIO Bus: probed
[    0.740721] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.747306] ehci-platform: EHCI generic platform driver
[    0.752783] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.758469] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.766380] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.796723] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.803987] hub 1-0:1.0: USB hub found
[    0.807946] hub 1-0:1.0: 1 port detected
[    0.812484] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.818800] ohci-platform: OHCI generic platform driver
[    0.824319] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.831049] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.839003] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.911816] hub 2-0:1.0: USB hub found
[    0.915652] hub 2-0:1.0: 1 port detected
[    0.923260] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.932824] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.941882] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.948806] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.953358] i2c /dev entries driver
[    0.958321] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.967929] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.036731] sunxi-mmc 1c0f000.mmc: base:0xc4241000 irq:23
[    1.096704] sunxi-mmc 1c10000.mmc: base:0xc4245000 irq:24
[    1.103123] usbcore: registered new interface driver usbhid
[    1.108789] usbhid: USB HID core driver
[    1.114280] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.122341] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.129864] NET: Registered protocol family 17
[    1.134458] Key type dns_resolver registered
[    1.139003] Registering SWP/SWPB emulation handler
[    1.152689] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.160687] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.166450] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.175714] hub 3-0:1.0: USB hub found
[    1.179715] hub 3-0:1.0: 1 port detected
[    1.184430] using random self ethernet address
[    1.189008] using random host ethernet address
[    1.194539] usb0: HOST MAC 82:01:3e:66:d1:5b
[    1.198979] usb0: MAC 6e:ad:4e:f7:14:81
[    1.202883] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.210409] g_cdc gadget: g_cdc ready
[    1.216792] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.226424] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:56 UTC (116)
[    1.234847] vcc5v0: disabling
[    1.237883] ALSA device list:
[    1.240853]   #0: V3s Audio Codec
[    1.246056] Waiting for root device /dev/mtdblock3...
[    5.675782] random: fast init done

#113 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何配置MTD ? » 2018-09-11 19:51:29

以下是正确的内容,是用32M的Jffs2的ZImge
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x600000
SF: 6291456 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffd8e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #13 SMP Thu Nov 9 10:19:17 CST 2017
[    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: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2
[    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: 53584K/64036K available (6144K kernel code, 218K rwdata, 1456K rodata, 1024K init, 264K bss, 10452K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a36a00   ( 219 kB)
[    0.000000]        .bss : 0xc0a3db20 - 0xc0a7fdfc   ( 265 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000189] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000430] Console: colour dummy device 80x30
[    0.000469] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000485] pid_max: default: 32768 minimum: 301
[    0.000611] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000626] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001242] CPU: Testing write buffer coherency: ok
[    0.001622] /cpus/cpu@0 missing clock-frequency property
[    0.001647] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002102] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002279] Hierarchical SRCU implementation.
[    0.002771] smp: Bringing up secondary CPUs ...
[    0.002784] smp: Brought up 1 node, 1 CPU
[    0.002794] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002801] CPU: All CPU(s) started in SVC mode.
[    0.003577] devtmpfs: initialized
[    0.006823] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007126] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007153] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007323] pinctrl core: initialized pinctrl subsystem
[    0.008173] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008327] NET: Registered protocol family 16
[    0.008812] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010028] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010047] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023853] SCSI subsystem initialized
[    0.024156] usbcore: registered new interface driver usbfs
[    0.024229] usbcore: registered new interface driver hub
[    0.024325] usbcore: registered new device driver usb
[    0.024577] pps_core: LinuxPPS API ver. 1 registered
[    0.024589] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024611] PTP clock support registered
[    0.024843] Advanced Linux Sound Architecture Driver Initialized.
[    0.026717] clocksource: Switched to clocksource arch_sys_counter
[    0.037901] NET: Registered protocol family 2
[    0.038500] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038536] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038560] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038684] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038731] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038950] NET: Registered protocol family 1
[    0.039526] RPC: Registered named UNIX socket transport module.
[    0.039545] RPC: Registered udp transport module.
[    0.039551] RPC: Registered tcp transport module.
[    0.039557] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041493] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050655] NFS: Registering the id_resolver key type
[    0.050704] Key type id_resolver registered
[    0.050711] Key type id_legacy registered
[    0.050759] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.052215] random: fast init done
[    0.054970] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054990] io scheduler noop registered
[    0.054997] io scheduler deadline registered
[    0.055278] io scheduler cfq registered (default)
[    0.055291] io scheduler mq-deadline registered
[    0.055297] io scheduler kyber registered
[    0.059794] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.131589] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.134954] console [ttyS0] disabled
[    0.155234] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.745430] console [ttyS0] enabled
[    0.753525] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.758694] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.764954] Creating 4 MTD partitions on "spi32766.0":
[    0.770121] 0x000000000000-0x000000100000 : "uboot"
[    0.776465] 0x000000100000-0x000000110000 : "dtb"
[    0.782573] 0x000000110000-0x000000710000 : "kernel"
[    0.788925] 0x000000710000-0x000001000000 : "rootfs"
[    0.795793] libphy: Fixed MDIO Bus: probed
[    0.800591] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.806386] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.812172] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.818367] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.824029] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.831275] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.836943] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.844156] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.849128] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.856123] libphy: stmmac: probed
[    0.861390] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.868053] ehci-platform: EHCI generic platform driver
[    0.873564] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.879255] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.887210] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.916737] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.923916] hub 1-0:1.0: USB hub found
[    0.927869] hub 1-0:1.0: 1 port detected
[    0.932388] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.938691] ohci-platform: OHCI generic platform driver
[    0.944237] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.950964] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.958896] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.031791] hub 2-0:1.0: USB hub found
[    1.035615] hub 2-0:1.0: 1 port detected
[    1.043219] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.052820] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.061793] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.068697] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.073242] i2c /dev entries driver
[    1.078211] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.087716] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.156767] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.216746] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.223206] usbcore: registered new interface driver usbhid
[    1.228853] usbhid: USB HID core driver
[    1.234330] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.242378] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.249900] NET: Registered protocol family 17
[    1.254466] Key type dns_resolver registered
[    1.258999] Registering SWP/SWPB emulation handler
[    1.271584] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.282305] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.298670] Console: switching to colour frame buffer device 100x30
[    1.311095] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.319734] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.331183] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.337031] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.346191] hub 3-0:1.0: USB hub found
[    1.350190] hub 3-0:1.0: 1 port detected
[    1.355331] using random self ethernet address
[    1.359907] using random host ethernet address
[    1.365358] usb0: HOST MAC d6:82:c6:43:78:f9
[    1.369830] usb0: MAC ba:57:f1:a3:b6:e0
[    1.373743] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.381275] g_cdc gadget: g_cdc ready
[    1.387730] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.397267] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:07 UTC (7)
[    1.405412] vcc3v3: disabling
[    1.408458] vcc5v0: disabling
[    1.411427] ALSA device list:
[    1.414390]   #0: V3s Audio Codec
[    1.420069] jffs2: Node at 0x00000fe0 with length 0x000000cd would run over the end of the erase block
[    1.429482] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.437014] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe4: 0x00cd instead
[    1.446483] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe8: 0x02ac instead
[    1.455995] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fec: 0x0014 instead
[    1.465677] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff0: 0x000b instead
[    1.475190] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff4: 0x81ed instead
[    1.484898] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x22bf instead

#114 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教大家一个问题 (v3s uboot) » 2018-09-11 19:25:26

无情一刀 说:
晕哥 说:

可以这样改, 没有问题, 前提是不要 内核和设备树的内存地址不要被相互覆盖了。


我这里是zImage是8M 所以最后制作文件系统的时候是这样的
# 由此计算得到 0x1000000(16M)-0x10000(64K)-0x100000(1M)-0x400000(8M)=0x6F0000
mkfs.jffs2 -s 0x100 -e 0x10000 --pad=0x6F0000 -d root/ -o jffs2.img

dd if=jffs2.img of=yangsichao.bin bs=1K seek=9280 conv=notrunc


后面运行的时候就卡这样不动了  这里Uboot我是对着文档一步步操作的 
U-Boot SPL 2017.01-rc2-00057-g32ab180-dirty (Sep 11 2018 - 02:03:51)
DRAM: 64 MiB
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

0x400000 是4M,0x800000是8M。所以,如果写rootfs,肯定是在0x910000处。

#115 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下,如何配置MTD ? » 2018-09-11 19:19:57

pqfeng
回复: 7

目前我自己配置的Linux,始终无法生成MTD。以下是正确的打印数据
[    0.758828] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.765091] Creating 4 MTD partitions on "spi32766.0":
[    0.770261] 0x000000000000-0x000000100000 : "uboot"
[    0.776598] 0x000000100000-0x000000110000 : "dtb"
[    0.782687] 0x000000110000-0x000000710000 : "kernel"
[    0.789051] 0x000000710000-0x000001000000 : "rootfs"
[    0.795907] libphy: Fixed MDIO Bus: probed
[    0.800710] dwmac-sun8i 1c30000.ethernet: PTP uses main clock

可以我的内核却无论如何也生成不出来。。。。。
我做了如何工作:
1 在uboot中添加了分区命令行。
#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x600000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2"
2. 在arch/arm/boot/dts/sun8i-v3s-lichee-zero.dts中添加了以下内容:
&spi0 {
        status ="okay";

        w25q128bv:w25q128bv@0 {
                compatible = "jedec,spi-nor";
                reg = <0x0>;
                spi-max-frequency = <50000000>;
                #address-cells = <1>;
                #size-cells = <1>;
        };
};
3. 在内核中device drive->mtd support->Command line partition table parsing 选中
    在内核中device drive->SPI support  进行了选中。

我按Zero的官方文档上的做了添加,却依然无法读到MTD相关参数。我不知道哪里出了错,希望有经验的朋友指教一二。多谢。

#117 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 15:28:59

依然还是不行。。。。。。
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[



[    1.121077] vcc5v0: disabling
[    1.124055] ALSA device list:
[    1.127094]   #0: V3s Audio Codec
[    1.131348] Waiting for root device /dev/mtdblock3...
[    5.594713] random: fast init done

#118 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 14:55:29

晕哥 说:

https://whycan.cn/t_1592.html

修改 bootargs 参数的方法在 上面帖子的 2楼


这个方法行不通。mmcblk0p2是读SD卡MMC卡等这种设备的。而且这个上面也说明了它是读二区。这个节点不能用在Flash上。(贴了Log)
[    1.089968] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.097495] g_cdc gadget: g_cdc ready
[    1.103751] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.112783] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:33 UTC (33)
[    1.121114] vcc5v0: disabling
[    1.124088] ALSA device list:
[    1.127127]   #0: V3s Audio Codec
[    1.131396] Waiting for root device /dev/mmcblk0p2...
[    5.594593] random: fast init done
^C[  235.185529] random: crng init done

#120 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 14:27:20

我刷新\v3s-rtl8723bs\的u-boot-sunxi-with-spl.bin和rootfs.tar.gz,依然不行。。。。。有看到rootfs内有console(解压看的)

#121 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 14:12:30

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 28 2017 - 15:38:11 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x800000
SF: 8388608 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff42d ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.2-licheepi-zero+ (zp@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #15 SMP Sat Apr 15 21:38:23 CST 2017
[    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: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24652 r8192 d24500 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/ram0 rdinit=/sbin/init vt.global_cursor_default=0
[    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: 53628K/64036K available (6144K kernel code, 213K rwdata, 1472K rodata, 1024K init, 260K bss, 10408K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a35600   ( 214 kB)
[    0.000000]        .bss : 0xc0a37000 - 0xc0a781cc   ( 261 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000147] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000360] Console: colour dummy device 80x30
[    0.000397] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000413] pid_max: default: 32768 minimum: 301
[    0.000560] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000573] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001290] CPU: Testing write buffer coherency: ok
[    0.001702] /cpus/cpu@0 missing clock-frequency property
[    0.001725] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002113] Setting up static identity map for 0x40100000 - 0x40100058
[    0.002878] smp: Bringing up secondary CPUs ...
[    0.002899] smp: Brought up 1 node, 1 CPU
[    0.002910] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002917] CPU: All CPU(s) started in SVC mode.
[    0.003703] devtmpfs: initialized
[    0.006621] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006901] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006929] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007091] pinctrl core: initialized pinctrl subsystem
[    0.008108] NET: Registered protocol family 16
[    0.008599] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009837] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009853] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021918] SCSI subsystem initialized
[    0.022215] usbcore: registered new interface driver usbfs
[    0.022278] usbcore: registered new interface driver hub
[    0.022391] usbcore: registered new device driver usb
[    0.022617] pps_core: LinuxPPS API ver. 1 registered
[    0.022626] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022648] PTP clock support registered
[    0.022887] Advanced Linux Sound Architecture Driver Initialized.
[    0.024724] clocksource: Switched to clocksource arch_sys_counter
[    0.025547] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[    0.025568] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.032433] Console: switching to colour frame buffer device 100x30
[    0.038571] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.048670] NET: Registered protocol family 2
[    0.049298] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049331] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.049356] TCP: Hash tables configured (established 1024 bind 1024)
[    0.049451] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.049501] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.049714] NET: Registered protocol family 1
[    0.050363] RPC: Registered named UNIX socket transport module.
[    0.050384] RPC: Registered udp transport module.
[    0.050390] RPC: Registered tcp transport module.
[    0.050395] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.052671] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.061817] NFS: Registering the id_resolver key type
[    0.061867] Key type id_resolver registered
[    0.061875] Key type id_legacy registered
[    0.061924] ntfs: driver 2.1.32 [Flags: R/W].
[    0.066579] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.066601] io scheduler noop registered
[    0.066608] io scheduler deadline registered
[    0.066794] io scheduler cfq registered (default)
[    0.070935] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.140170] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.143372] console [ttyS0] disabled
[    0.163666] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.762444] console [ttyS0] enabled
[    0.766645] [drm] Initialized
[    0.771510] libphy: Fixed MDIO Bus: probed
[    0.776034] usbcore: registered new interface driver r8152
[    0.781522] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.788096] ehci-platform: EHCI generic platform driver
[    0.793421] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.799652] ohci-platform: OHCI generic platform driver
[    0.805057] usbcore: registered new interface driver usb-storage
[    0.811096] usbcore: registered new interface driver ums-freecom
[    0.817556] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.827083] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.836053] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.842850] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.847509] i2c /dev entries driver
[    0.852344] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.861969] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.924763] sunxi-mmc 1c0f000.mmc: base:0xc405f000 irq:23
[    0.984753] sunxi-mmc 1c10000.mmc: base:0xc4063000 irq:24
[    0.991100] usbcore: registered new interface driver usbhid
[    0.996757] usbhid: USB HID core driver
[    1.002181] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.010239] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.017418] NET: Registered protocol family 17
[    1.021982] Key type dns_resolver registered
[    1.026521] Registering SWP/SWPB emulation handler
[    1.039957] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.047979] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.053745] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.062944] hub 1-0:1.0: USB hub found
[    1.066942] hub 1-0:1.0: 1 port detected
[    1.071616] using random self ethernet address
[    1.076198] using random host ethernet address
[    1.081606] usb0: HOST MAC 02:6c:63:7a:24:c5
[    1.086102] usb0: MAC f2:58:cc:b7:95:4d
[    1.089985] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.097511] g_cdc gadget: g_cdc ready
[    1.103696] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.112723] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:10 UTC (70)
[    1.121057] vcc5v0: disabling
[    1.124033] ALSA device list:
[    1.127071]   #0: V3s Audio Codec
[    1.131308] Waiting for root device /dev/ram0...
[    3.203444] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[    4.315418] random: fast init done

#123 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 13:49:52

[    1.066942] hub 1-0:1.0: 1 port detected
[    1.071616] using random self ethernet address
[    1.076198] using random host ethernet address
[    1.081606] usb0: HOST MAC 02:6c:63:7a:24:c5
[    1.086102] usb0: MAC f2:58:cc:b7:95:4d
[    1.089985] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.097511] g_cdc gadget: g_cdc ready
[    1.103696] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.112723] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:10 UTC (70)
[    1.121057] vcc5v0: disabling
[    1.124033] ALSA device list:
[    1.127071]   #0: V3s Audio Codec
[    1.131308] Waiting for root device /dev/ram0...
[    3.203444] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[    4.315418] random: fast init done

每次都能运行到这里。
就是不出现登录提示符

#124 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » 请教一下大家,为什么我的V3S zero系统就是进不到命令行? » 2018-09-11 12:21:51

pqfeng
回复: 19

如果题。我先说一下我的情况。1,我直接用官方的Lichee Zero\dd_img\brmin_dd\lichee_zero-brmin_alpha.dd直接烧到T卡,可以正常启动动。2。我直接用官方的\Lichee Zero\image_collect\V3s+littlevgl 固件\littlevgl.bin烧写Flash,也是正常的。可以进行命令行。 3,我用\Lichee Zero\image_collect\v3s-rtl8723bs\下的uboot+Zimage+Rootfs,可以正常运行,但有一点,这个ZImage有8M多。所以我把rootfs烧写在了0x910000的位置,能正常工作。随后,我更新一下我自己打包的tar,也可以正常运行,但这个根文件系统中却没有我自己添加进去的目录。也就意味着,我后面烧的910000位置的rootfs根本是不起作用的。后来我单独刷用官方的Uboot:u-boot-sunxi-with-spl-vga.bin,无法启动。,。然后我改用根据官方添加的32M的那个
#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x400000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs)  root=31:03 rw rootfstype=jffs2" (修改了root=/dev/ram0)能启动zImage。系统运行到最后,但是进不了命令行。。根文件系统用E:\vmware-ubuntu14.1\vmware-share\Lichee Zero\image_collect\v3s-rtl8723bs\rootfs.tar。
此后,我不断尝试,更换Uboot,dbt,zImage,Rootfs,都无法进入。包括用官方的其他散装包。 我的需要其实比较简单,就是想能用自己的tar包,把自己的文件打包到tar中去,这样在inittab中设置启动,事情就OK了,奈何一直无法实现。哪位有经验帮我看看看。谢谢了。

#125 Re: 全志/Allwinnertech/V3S/A64/H6/A20/A33/F1C100s » F1C100S裸奔framebuffer+PWM+GPIO驱动 » 2018-08-18 14:46:19

真的是好东西,再问一下,这个可以在V3S上跑么,如果要改大动,大概改哪里?谢谢。

页脚

Powered by FluxBB