您尚未登录。

#1 Re: 全志 SOC » F1C100S linux-4.15 无法软件重启的问题原因 » 2020-05-27 11:35:52

感谢楼主,这个问题尝试了很多次一直没解决。这去测试一下
成功了!!!
allwinner F1C100S使用看门狗进行热启动的原因是: 没有PMU去支持冷启动

#2 Re: 全志 SOC » 荔枝派v3s开机logo下面有打印信息输出怎么去除 » 2020-05-25 09:55:50

在配置文件中增加宏定义 CONFIG_HIDE_LOGO_VERSION
或者在文件 drivers/video/cbf_console.c 文件头部增加宏定义 #define CONFIG_HIDE_LOGO_VERSION 1
重新编译烧录后,就消失了。


凡事还是得靠自己呀。。。

#3 Re: 全志 SOC » 笔记-编译LittlevGL GUI demo支持tslib » 2020-03-26 16:27:29

我也是根据上面修改的,
但是编译到最后总是报错
./main.o: In function `main':
main.c:(.text.startup+0x70): undefined reference to `lv_theme_night_init'
main.c:(.text.startup+0x74): undefined reference to `lv_test_theme_1'
collect2: error: ld returned 1 exit status
Makefile:39: recipe for target 'default' failed
make: *** [default] Error 1

后来在main函数中就把 lv_test_theme_1 相关的内容都删除了,就运行demo
有没有人知道为什么会这样子呢,? 头文件都包含了呀。。。



a32425262 说:

感谢回复,你的说法是对的,使用官方的这个
然后添加上tslib

In file included from /workdir/littlevgl/pc_simulator/lvgl/src/lv_core/lv_group.h:19:0,
                 from /workdir/littlevgl/pc_simulator/lvgl/src/lv_core/lv_group.c:9:
/workdir/littlevgl/pc_simulator/lvgl/src/lv_core/../../../lv_conf.h:388:10: fatal error: lvgl/lv_conf_checker.h: No such file or directory
 #include "lvgl/lv_conf_checker.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [lv_group.o] Error 1

real    0m0.340s
user    0m0.052s
sys     0m0.048s

#5 Re: 全志 SOC » Licheepi nano 系统启动失败,卡在 Staring kernel ... » 2020-03-26 10:06:26

jerryzheng 说:

我发现是dtb文件没有更新, 为什么呢? 我明明用了这个命令了

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4

将config删除,再重新menuconfig, dtb文件可以生成最新的了。。。

#6 Re: 全志 SOC » Licheepi nano 系统启动失败,卡在 Staring kernel ... » 2020-03-26 09:42:01

我思故我在 说:

大概率是 zImage或dtb 不完整引起

我发现是dtb文件没有更新, 为什么呢? 我明明用了这个命令了

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4

#7 全志 SOC » Licheepi nano 系统启动失败,卡在 Staring kernel ... » 2020-03-25 18:01:03

jerryzheng
回复: 6
U-Boot 2018.01-05679-g013ca457fd-dirty (Mar 25 2020 - 16:14:47 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected xt25f128b 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)
In:    serial
Out:   vga
Err:   vga
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x400000
SF: 4194304 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e6409e ... OK

Starting kernel ...

SPI Flash  分区结构:

ID  SIZE    USAGE   ADDR
0   448kb   U-boot  0x0000 0000 - 0x0007 0000
1   64kb    dtb     0x0007 0000 - 0x0008 0000
2   4mb     kernel  0x0008 0000 - 0x0048 0000
3   7.5mb   rootfs  0x0048 0000 - 0x00c0 0000
4   4mb     overlay 0x00c0 0000 - 0x0100 0000   

uboot启动参数:

sf probe 0 60000000; sf read 0x80c00000 0x70000 0x10000; sf read 0x80008000 0x80000 0x400000; bootz 0x80008000 - 0x80c00000

镜像脚本

#!/bin/bash
echo "Hello World!"
echo "coping files............."
cp ../u-boot/u-boot-sunxi-with-spl.bin ./uboot.bin
cp ../linux/arch/arm/boot/zImage ./zImage
cp ../linux/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb ./licheepi-nano.dtb
cp ../buildroot-2017.08/output/images/rootfs.tar  ./

echo "delete rootfs directory............."
rm -rf rootfs

dd if=/dev/zero of=flashimg.bin bs=1M count=16
dd if=uboot.bin of=flashimg.bin bs=1K conv=notrunc
dd if=licheepi-nano.dtb of=flashimg.bin bs=1K seek=448  conv=notrunc
dd if=zImage of=flashimg.bin bs=1K seek=512  conv=notrunc
mkdir rootfs
echo "decompression rootfs.tar............"
tar -xf rootfs.tar -C ./rootfs

echo "decompression done..........."

fakeroot mkfs.jffs2 -s 0x100 -e 0x10000 --pad=0xAF0000 -d rootfs/ -o rootfs.img
fakeroot mkfs.jffs2 -s 0x100 -e 0x10000 --pad=0x400000 -o jffs2.img -d overlay/

dd if=rootfs.img of=flashimg.bin  bs=1K seek=4608  conv=notrunc
dd if=jffs2.img of=flashimg.bin bs=1M seek=12 conv=notrunc

rm -rf rootfs.img jffs2.img uboot.bin zImage

参考了荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程

是不是这句影响了启动:*** Warning - bad CRC, using default environment

#8 Re: 全志 SOC » 荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程 » 2020-03-25 16:50:20

U-Boot 2018.01-05679-g013ca457fd-dirty (Mar 25 2020 - 16:14:47 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected xt25f128b 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)
In:    serial
Out:   vga
Err:   vga
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x400000
SF: 4194304 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e6409e ... OK

Starting kernel ...

卡在start kernel 这里会是什么问题导致的?
@jiangming1399

#9 Re: 全志 SOC » 荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程 » 2020-03-25 14:40:57

buildroot-2017.08  配置后,生成的rootfs.tar 太大了90多M, SPI Flash 才16M,
需要裁剪掉哪些内容??
@晕哥

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn