您尚未登录。

楼主 #1 2018-04-19 16:57:55

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

【1】step by step 编译全志 f1c100s 官方linux bsp

2018-04-01上架版本:
核心板原理图: Lichee_nano.pdf
底板原理图:    lpi-nano-dock.pdf
网盘资料(有可能会失效):https://pan.baidu.com/s/1smzuGS9
购买地址: 9.9元起 荔枝派Nano 跨界核心板 开发板 多系统 linux


--------------------------------------------------
F1C100s资料集合:
参考链接0: 买个全志arm9 F1C100s 方案的唱戏机回来拆一拆
参考链接1: F1C100s 手册
参考链接2: 看戏机(唱戏机)F1C100原理图
参考链接3: 侨德实业有限公司VS (全志C100电脑升级)流程示意图
参考链接4: 先科唱戏机(看戏机)F1C100s方案运行XBOOT大神的XBOOT系统步骤
参考链接5: F1C100s入坑记录
参考链接6: 编译、安装Windows版本sunxi-fel步骤
参考链接7: 感谢荔枝派群主泽畔友情赠送的nano f1c100s开发板、液晶屏、电容触摸屏.






























正确姿势下载芒果派git hub上 f1c100s bsp代码

如果你的姿势是:

那么恭喜你, 你碰到的坑多大根本填不完。





离线

楼主 #2 2018-04-19 17:02:18

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

How to install git-lfs on Ubuntu 16.04?

  1. sudo apt-get install -y lib32z1 lib32ncurses5 lib32stdc++6

  2. sudo apt-get install -y u-boot-tools make g++ gettext python unzip fakeroot

  3. sudo apt-get install -y bison texinfo bc flex

  4. sudo apt-get install -y software-properties-common

  5. sudo curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

  6. sudo apt-get install git-lfs

  7. git lfs install

所以直接用下面的命令即可:

sudo apt-get install -y lib32z1 lib32ncurses5 lib32stdc++6
sudo apt-get install -y u-boot-tools make g++ gettext python unzip fakeroot
sudo apt-get install -y bison texinfo bc flex
sudo apt-get install -y software-properties-common
sudo curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
git lfs clone https://github.com/mirkerson/c600.git




离线

楼主 #3 2018-04-19 17:02:23

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

以下是2018-08-13 更新:
-------------------------------------------------
全志官方烧录软件: PhoenixSuit_CN_debug.msi
我编译的img: sunivw1p1_linux_evb_uart0.img.tar.gz

串口线接 A0, A1





离线

楼主 #4 2018-04-19 17:24:24

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

test -z "/opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/bin" || /bin/mkdir -p "/opt/c600/out/sunivw1p1/linux/common/sr/bin"
  /bin/bash ./libtool   --mode=install /usr/bin/install -c 'faked' '/opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/b
libtool: install: /usr/bin/install -c faked /opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/bin/faked
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-fakeroot-1.9.5'
make[2]: Leaving directory `/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-fakeroot-1.9.5'
make[1]: Leaving directory `/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-fakeroot-1.9.5'
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs
mkdir /opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs
cp package/makedevs/makedevs.c /opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs
cc -Wall -Werror -O2 /opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs/makedevs.c -o /opt/c600/out/sunivw1p1ildroot/build/host-makedevs/makedevs
/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs/makedevs.c: In function ‘main’:
/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs/makedevs.c:374:6: error: variable ‘ret’ set but not used [ut-set-variable]
  int ret = EXIT_SUCCESS;
      ^
cc1: all warnings being treated as errors
make: *** [/opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs/makedevs] Error 1
make: Leaving directory `/opt/c600/buildroot'
ERROR: build buildroot Failed

一个编译错误。


文件 /opt/c600/out/sunivw1p1/linux/common/buildroot/build/host-makedevs/makedevs.c 最末

return 0;
改为
return ret;

即可。





离线

楼主 #5 2018-04-19 18:01:17

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2
ERROR: build kernel Failed
root@localhost:/opt/c600# mkimage
-bash: mkimage: command not found


解决方法:
ubuntu12.04:
sudo apt-get install uboot-mkimage

ubuntu14.04:
sudo apt-get install u-boot-tools





离线

楼主 #6 2018-04-19 18:05:44

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

In file included from drivers/soc/allwinner/pm-suniv/standby/standby_i.h:21:0,
                 from drivers/soc/allwinner/pm-suniv/standby/standby_clock.h:20,
                 from drivers/soc/allwinner/pm-suniv/standby/standby_clock.c:9:
include/linux/power/aw_pm.h:143:0: warning: "PLL_NUM" redefined
include/linux/power/aw_pm.h:92:0: note: this is the location of the previous definition
include/linux/power/aw_pm.h:153:0: warning: "BUS_NUM" redefined
include/linux/power/aw_pm.h:93:0: note: this is the location of the previous definition
rm -rf *.o drivers/soc/allwinner/pm-suniv/standby/./*.o
  AS      drivers/soc/allwinner/pm-suniv/standby.o
  LD      drivers/soc/allwinner/pm-suniv/built-in.o
  LD      drivers/soc/allwinner/built-in.o
  LD      drivers/soc/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 3 modules
make: Nothing to be done for `modules'.
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CC      drivers/soc/allwinner/pm-suniv/standby/main.o
In file included from drivers/soc/allwinner/pm-suniv/standby/standby_i.h:21:0,
                 from drivers/soc/allwinner/pm-suniv/standby/main.c:19:
include/linux/power/aw_pm.h:143:0: warning: "PLL_NUM" redefined
include/linux/power/aw_pm.h:92:0: note: this is the location of the previous definition
include/linux/power/aw_pm.h:153:0: warning: "BUS_NUM" redefined
include/linux/power/aw_pm.h:93:0: note: this is the location of the previous definition
  AS      drivers/soc/allwinner/pm-suniv/standby/suniv-standby.o
  CC      drivers/soc/allwinner/pm-suniv/standby/dram_sys.o
  CC      drivers/soc/allwinner/pm-suniv/standby/standby_clock.o
In file included from drivers/soc/allwinner/pm-suniv/standby/standby_i.h:21:0,
                 from drivers/soc/allwinner/pm-suniv/standby/standby_clock.h:20,
                 from drivers/soc/allwinner/pm-suniv/standby/standby_clock.c:9:
include/linux/power/aw_pm.h:143:0: warning: "PLL_NUM" redefined
include/linux/power/aw_pm.h:92:0: note: this is the location of the previous definition
include/linux/power/aw_pm.h:153:0: warning: "BUS_NUM" redefined
include/linux/power/aw_pm.h:93:0: note: this is the location of the previous definition
rm -rf *.o drivers/soc/allwinner/pm-suniv/standby/./*.o
  AS      drivers/soc/allwinner/pm-suniv/standby.o
  LD      drivers/soc/allwinner/pm-suniv/built-in.o
  LD      drivers/soc/allwinner/built-in.o
  LD      drivers/soc/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-3.10.65
Created:      Thu Apr 19 06:02:31 2018
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2167008 Bytes = 2116.22 kB = 2.07 MB
Load Address: 80008000
Entry Point:  80008000
  Image arch/arm/boot/uImage is ready
‘arch/arm/boot/Image’ -> ‘output/bImage’
‘arch/arm/boot/uImage’ -> ‘output/uImage’
‘arch/arm/boot/zImage’ -> ‘output/zImage’
Copy modules to target ...

sunivw1p1 compile Kernel successful


INFO: build kernel OK.
INFO: build rootfs ...
make: Entering directory `/opt/c600/buildroot'
/bin/sed -i -e '/# GENERIC_SERIAL$/s~^.*#~ttyS1::respawn:/sbin/getty -n -l /bin/ash -L ttyS1 115200 vt100 #~' \
                /opt/c600/out/sunivw1p1/linux/common/buildroot/target/etc/inittab
###################################################################
"3a:9d:33:28:d2:22"
192.168.3.122
###################################################################
make: Leaving directory `/opt/c600/buildroot'
make: Entering directory `/opt/c600/buildroot'
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/include /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/lib/pkgconfig /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/aclocal
find /opt/c600/out/sunivw1p1/linux/common/buildroot/target/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
find /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/gdb
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/man /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/man
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/info /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/info
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/doc /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/doc
rm -rf /opt/c600/out/sunivw1p1/linux/common/buildroot/target/usr/share/gtk-doc
find /opt/c600/out/sunivw1p1/linux/common/buildroot/target -type f -perm +111 '!' -name 'libthread_db*.so*' | \
                xargs /opt/c600/out/sunivw1p1/linux/common/buildroot/external-toolchain/bin/arm-none-linux-gnueabi-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true
find /opt/c600/out/sunivw1p1/linux/common/buildroot/target/lib/modules -type f -name '*.ko' | \
                xargs -r /opt/c600/out/sunivw1p1/linux/common/buildroot/external-toolchain/bin/arm-none-linux-gnueabi-strip --remove-section=.comment --remove-section=.note --strip-unneeded || true
mkdir -p /opt/c600/out/sunivw1p1/linux/common/buildroot/target/etc
# Mandatory configuration file and auxilliary cache directory
# for recent versions of ldconfig
touch /opt/c600/out/sunivw1p1/linux/common/buildroot/target/etc/ld.so.conf
mkdir -p /opt/c600/out/sunivw1p1/linux/common/buildroot/target/var/cache/ldconfig
if [ -x "/opt/c600/out/sunivw1p1/linux/common/buildroot/external-toolchain/bin/arm-none-linux-gnueabi-ldconfig" ]; \
        then \
                /opt/c600/out/sunivw1p1/linux/common/buildroot/external-toolchain/bin/arm-none-linux-gnueabi-ldconfig -r /opt/c600/out/sunivw1p1/linux/common/buildroot/target; \
        else \
                /sbin/ldconfig -r /opt/c600/out/sunivw1p1/linux/common/buildroot/target; \
        fi
echo 2011.02-g6e1e8f9 > /opt/c600/out/sunivw1p1/linux/common/buildroot/target/etc/br-version
"target/suniv.sh" /opt/c600/out/sunivw1p1/linux/common/buildroot/target
mkdir: cannot create directory ‘/opt/c600/out/sunivw1p1/linux/common/buildroot/target/lib/firmware’: File exists
cp: cannot stat ‘/opt/c600/out/sunivw1p1/linux/common/buildroot/external-toolchain/arm-linux-gnueabi/libc/lib/arm-linux-gnueabi/*’: No such file or directory
make: Leaving directory `/opt/c600/buildroot'
make: Entering directory `/opt/c600/buildroot'
>>>   Generating root filesystem image rootfs.squashfs
rm -f /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
touch /opt/c600/out/sunivw1p1/linux/common/buildroot/build/.fakeroot.00000
cat /opt/c600/out/sunivw1p1/linux/common/buildroot/build/.fakeroot* > /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
echo "chown -R 0:0 /opt/c600/out/sunivw1p1/linux/common/buildroot/target" >> /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
echo "/opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/bin/makedevs -d target/generic/device_table.txt /opt/c600/out/sunivw1p1/linux/common/buildroot/target" >> /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
echo "  /opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/bin/mksquashfs /opt/c600/out/sunivw1p1/linux/common/buildroot/target /opt/c600/out/sunivw1p1/linux/common/buildroot/images/rootfs.squashfs -noappend -comp xz && chmod 0644 /opt/c600/out/sunivw1p1/linux/common/buildroot/images/rootfs.squashfs" >> /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
chmod a+x /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
/opt/c600/out/sunivw1p1/linux/common/buildroot/host/usr/bin/fakeroot -- /opt/c600/out/sunivw1p1/linux/common/buildroot/build/_fakeroot.fs
rootdir=/opt/c600/out/sunivw1p1/linux/common/buildroot/target
table='target/generic/device_table.txt'
Warning: skip syncing
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /opt/c600/out/sunivw1p1/linux/common/buildroot/images/rootfs.squashfs, block size 131072.
[============================================================================================================\] 113/113 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
        compressed data, compressed metadata, compressed fragments, no xattrs
        duplicates are removed
Filesystem size 2383.61 Kbytes (2.33 Mbytes)
        37.09% of uncompressed filesystem size (6426.59 Kbytes)
Inode table size 3134 bytes (3.06 Kbytes)
        16.84% of uncompressed inode table size (18613 bytes)
Directory table size 4780 bytes (4.67 Kbytes)
        55.35% of uncompressed directory table size (8636 bytes)
Number of duplicate files found 2
Number of inodes 580
Number of files 83
Number of fragments 17
Number of symbolic links  269
Number of device nodes 185
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 43
Number of ids (unique uids + gids) 3
Number of uids 2
        root (0)
        unknown (1000)
Number of gids 3
        root (0)
        tty (5)
        unknown (1000)
make: Leaving directory `/opt/c600/buildroot'
INFO: build rootfs OK.
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
root@localhost:/opt/c600#

编译成功,但是不知道生成的 img 在何处 .

-rw-r--r-- 1 root root  305770 Apr 19 04:55 ./linux-3.10/drivers/staging/ft1000/ft1000-pcmcia/ft1000.img
-rw-r--r-- 1 root root  280414 Apr 19 04:55 ./linux-3.10/drivers/staging/ft1000/ft1000-usb/ft3000.img
-rw-r--r-- 1 root root 7256064 Apr 19 06:02 ./linux-3.10/output/boot.img
-rw-r--r-- 1 root root 7256064 Apr 19 06:02 ./out/sunivw1p1/linux/common/boot.img





离线

楼主 #7 2018-04-19 18:06:05

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

QQ20180419184335.png

QQ20180419184340.png

出师不利
估计和v3s不是同一个软件...
那么问题来了, 哪里有f1c100s的官方烧录软件?





离线

楼主 #8 2018-04-19 18:06:13

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

原来是还没有生成烧录的image文件, 汗!
在 @assert 大神指导下,执行 ./build.sh pack 搞定。

root@localhost:/opt/c600# ./build.sh pack
INFO: packing firmware ...
copying tools file
copying configs file
./out/aultls32.fex
./out/aultools.fex
./out/bootlogo.fex
./out/boot_package.cfg
./out/boot_package.fex
./out/boot_package_nor.cfg
./out/cardscript.fex
./out/cardtool.fex
./out/diskfs.fex
./out/env_burn.cfg
./out/env.cfg
./out/image.cfg
‘./out/image_linux.cfg’ -> ‘./out/image.cfg’
./out/recover_f.fex
./out/recover_k.fex
./out/split_xxxx.fex
./out/sunxi.fex
./out/sys_config.fex
./out/sys_partition_dragonboard.fex
./out/sys_partition_dump.fex
./out/sys_partition.fex
‘./out/sys_partition_linux.fex’ -> ‘./out/sys_partition.fex’
./out/sys_partition_nor.fex
./out/sys_partition_private.fex
./out/test_config.fex
./out/toc0.fex
./out/toc1.fex
./out/usbtool.fex
./out/usbtool_test.fex
copying boot resource
copying boot file
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=twi_para state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=dram state=0
p=soc c=twi0 state=0
p=soc c=twi1 state=0
p=soc c=twi2 state=0
p=soc c=uart0 state=0
p=soc c=uart1 state=0
p=soc c=spi0 state=0
p=soc c=rtp_para state=0
p=soc c=ctp_para state=0
p=soc c=tkey_para state=0
p=soc c=motor_para state=0
p=soc c=nand0 state=0
p=soc c=disp_init state=0
p=soc c=lcd0 state=0
p=soc c=pwm0_para state=0
p=soc c=pwm1_para state=0
p=soc c=vip0 state=0
p=soc c=tvout_para state=0
p=soc c=tvin_para state=0
p=soc c=di state=0
p=soc c=sdc0 state=0
p=soc c=sdc1 state=0
p=soc c=smc state=0
p=soc c=gsensor_para state=0
p=soc c=gps_para state=0
p=soc c=wifi_para state=0
p=soc c=gy_para state=0
p=soc c=ls_para state=0
p=soc c=compass_para state=0
p=soc c=bt_para state=0
p=soc c=audiospdif state=0
p=soc c=spdif_machine state=0
p=soc c=audiohdmi state=0
p=soc c=hdmi_machine state=0
p=soc c=pmu0 state=0
p=soc c=pmu0_regu state=0
p=soc c=dvfs_table state=0
p=soc c=Vdevice state=0
Conver script to dts ok.
./pack: line 439: busybox: command not found
./pack: line 440: busybox: command not found
./pack: line 436:  4466 Segmentation fault      script sys_partition.fex > /dev/null
update_fdt: u-boot-spinor.fex will merage sunxi.fex, generate u-boot-spinor.fex
---0xd0, 0xd
update_fdt: num 216204 randto1k
update_fdt: num 40289 randto1k
file1_len = 35000, file2_len = c000
----------i1111-217088
dtb offset 35000,size c000
update_fdt:genrate /opt/c600/tools/pack/out/u-boot-spinor.fex ok
./pack: line 462: busybox: command not found
pack boot package
./pack: line 469: busybox: command not found
GetPrivateProfileSection read to end
content_count=1
pack boot package
./pack: line 501: busybox: command not found
GetPrivateProfileSection read to end
content_count=1
packing for linux
normal
load file: boot0_spinor.fex ok
load file: boot_package_nor.fex ok
load file: sunxi_mbr.fex ok
load file: sys_partition.bin ok
load file: kernel.fex ok
this is not a partition key
merge_package ok
/opt/c600/tools/pack/pctools/linux/eDragonEx/
/opt/c600/tools/pack/out
Begin Parse sys_partion.fex
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=483400Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=6eb800sys_config.fex Len: 0xab09
config.fex Len: 0x6900
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xb49
sunxi.fex Len: 0x9d61
boot0_nand.fex Len: 0x8000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0x64000
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x2740
boot_package.fex Len: 0x68000
full_img.fex Len: 0x2c0000
usbtool.fex Len: 0x23000
aultools.fex Len: 0x26ead
aultls32.fex Len: 0x238dd
cardtool.fex Len: 0x18e00
cardscript.fex Len: 0x779
sunxi_mbr.fex Len: 0x4000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0x6
boot-resource.fex Len: 0x483400
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x6eb800
Vboot.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------

/opt/c600/tools/pack/sunivw1p1_linux_evb_uart0.img

pack finish




离线

楼主 #9 2018-04-19 18:06:19

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

QQ20180419204822.png

烧是烧完了, 两组UART0串口都没反应.





离线

楼主 #10 2018-04-19 18:09:24

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

HELLO! BOOT0 is starting!
boot0 commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
boot0 version : 4.0
run key detect boot0
do_key_test
key pressed value=0x00000003
reg_val=0x00000000----------------------
dram size =32
Reg pull reg_val=0x00000000,read=0x00000010
Succeed in reading toc file head.
The size of toc is 00050000.
Entry_name        = u-boot
Ready to disable icache.
Jump to secend Boot.
board/sunxi/common/board_common.c 510--nodeoffset = 623c


U-Boot 2014.07 (Mar 31 2018 - 15:55:09) Allwinner Technology 

uboot commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
uboot:normal mode
[      0.123]pmbus:   ready
run key detect
no uart input
DRAM:  32 MiB
Relocation Offset is: 017b9000
In:    serial
Out:   serial
Err:   serial
workmode = 0,storage type = 3
[      0.154]spinor:	 0
sunxi spinor is initing...int sunxi_dma_init---
sunxi_dma_install_int ok
sunxi_dma_install_int ok
OK
[      0.156]sunxi flash init ok 
[      0.157]sunxi flash init ok
*(uint32_t *)(0x81ff0000)=-2002244950
sunxi secure storage is not supported
private partition is not exist
fail to find part named env
Using default environment

--------fastboot partitions--------
-total partitions:2-
-name-        -start-       -size-      
boot        : 4000          240000      
UDISK       : 244000        0           
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_nand
fix bootcmd=run setargs_nand boot_normal
key 0
cant find recovery value
cant find fastboot value
no misc partition is found
to be run cmd=run setargs_nand boot_normal
common/fdt_support.c 540--blob = 0x8096e120
emmc or nand path error: <no error>
common/board_r.c 305-initr_sunxi_base-END--
[      0.194]inter uboot shell
Hit any key to stop autoboot:  3  2  1  0 
read partition: boot or recovery
boota: bad boot image magic, maybe not a boot.img?
try to read partition(boot) all
[      3.348]sunxi flash read :offset 4000, 2359296 bytes OK
boota: bad boot image magic, maybe not a boot.img?
boota - boota   - boot android bootimg from memory


Usage:
boota <addr>
    - boot application image stored in memory
	'addr' should be the address of boot image which is kernel+ramdisk.img

sunxi#

烧录我自己编译的 sunivw1p1_linux_evb_uart0.img 只能启动到 u-boot?
而 @assert 给我的img文件能正常启动到linux shell

而且我pack出来的img只有 @assert 给我的一半大小。





离线

楼主 #11 2018-04-20 10:53:55

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

我编译的挂了:

HELLO! BOOT0 is starting!
boot0 commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
boot0 version : 4.0
run key detect boot0
do_key_test
key pressed value=0x00000004
reg_val=0x00000000----------------------
dram size =32
Reg pull reg_val=0x00000000,read=0x00000010
Succeed in reading toc file head.
The size of toc is 00050000.
Entry_name        = u-boot
Ready to disable icache.
Jump to secend Boot.
board/sunxi/common/board_common.c 510--nodeoffset = 6244


U-Boot 2014.07 (Mar 31 2018 - 15:55:09) Allwinner Technology 

uboot commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
uboot:normal mode
[      0.123]pmbus:   ready
run key detect
no uart input
DRAM:  32 MiB
Relocation Offset is: 017b9000
In:    serial
Out:   serial
Err:   serial
workmode = 0,storage type = 3
[      0.154]spinor:	 0
sunxi spinor is initing...int sunxi_dma_init---
sunxi_dma_install_int ok
sunxi_dma_install_int ok
OK
[      0.156]sunxi flash init ok 
[      0.157]sunxi flash init ok
*(uint32_t *)(0x81ff0000)=-2012741624
sunxi secure storage is not supported
[      0.165]usb burn from boot
delay time 0
sunxi_dma_install_int ok
[      0.231]usb prepare ok
[      0.419]timer occur
[      0.419]overtime
[      0.453]do_burn_from_boot usb : no usb exist
--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-      
boot        : 4000          240000      
rootfs      : 244000        800000      
env         : a44000        20000       
bootlogo    : a64000        10000       
recoverk    : a74000        180000      
recoverf    : bf4000        340000      
private     : f34000        10000       
UDISK       : f44000        0           
-----------------------------------
base bootcmd=run setargs_mmc boot_normal
bootcmd set setargs_nand
fix bootcmd=run setargs_mmc boot_normal
key 0
cant find recovery value
cant find fastboot value
no misc partition is found
to be run cmd=run setargs_mmc boot_normal
common/fdt_support.c 540--blob = 0x8096e120
emmc or nand path error: <no error>
common/board_r.c 305-initr_sunxi_base-END--
[      0.501]inter uboot shell
Hit any key to stop autoboot:  0 
read partition: boot or recovery
boota: bad boot image magic, maybe not a boot.img?
try to read partition(boot) all
[      0.652]sunxi flash read :offset 4000, 2359296 bytes OK
## Booting kernel from Legacy Image at 80007800 ...
   Image Name:   Linux-3.10.65
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2243928 Bytes = 2.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ...
OK
## Transferring control to Linux (at address 80008000)...

arch/arm/lib/bootm.c 72 Starting kernel ...

--r2 0x8096e120,images->ft_len= = 0 , working_fdt = 8096e120, bi_boot_params = 0 fake = 0

正常的是这样的:

HELLO! BOOT0 is starting!
boot0 commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
boot0 version : 4.0
run key detect boot0
do_key_test
key pressed value=0x00000002
reg_val=0x00000000----------------------
dram size =32
Reg pull reg_val=0x00000000,read=0x00000010
Succeed in reading toc file head.
The size of toc is 00050000.
Entry_name        = u-boot
Ready to disable icache.
Jump to secend Boot.
board/sunxi/common/board_common.c 510--nodeoffset = 623c


U-Boot 2014.07 (Mar 31 2018 - 15:55:09) Allwinner Technology 

uboot commit : 79d2fe0388f5367fe2f42cc3eb1db9113426c15d
 
uboot:normal mode
[      0.123]pmbus:   ready
run key detect
no uart input
DRAM:  32 MiB
Relocation Offset is: 017b9000
In:    serial
Out:   serial
Err:   serial
workmode = 0,storage type = 3
[      0.154]spinor:     0
sunxi spinor is initing...int sunxi_dma_init---
sunxi_dma_install_int ok
sunxi_dma_install_int ok
OK
[      0.156]sunxi flash init ok 
[      0.157]sunxi flash init ok
*(uint32_t *)(0x81ff0000)=0
sunxi secure storage is not supported
[      0.164]usb burn from boot
delay time 0
sunxi_dma_install_int ok
[      0.231]usb prepare ok
[      0.419]timer occur
[      0.419]overtime
[      0.453]do_burn_from_boot usb : no usb exist
--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-      
boot        : 4000          240000      
rootfs      : 244000        800000      
env         : a44000        20000       
bootlogo    : a64000        10000       
recoverk    : a74000        180000      
recoverf    : bf4000        340000      
private     : f34000        10000       
UDISK       : f44000        0           
-----------------------------------
base bootcmd=run setargs_mmc boot_normal
bootcmd set setargs_nand
fix bootcmd=run setargs_mmc boot_normal
key 0
cant find recovery value
cant find fastboot value
no misc partition is found
to be run cmd=run setargs_mmc boot_normal
common/fdt_support.c 540--blob = 0x8096e120
emmc or nand path error: <no error>
common/board_r.c 305-initr_sunxi_base-END--
[      0.501]inter uboot shell
Hit any key to stop autoboot:  0 
read partition: boot or recovery
boota: bad boot image magic, maybe not a boot.img?
try to read partition(boot) all
[      0.652]sunxi flash read :offset 4000, 2359296 bytes OK
## Booting kernel from Legacy Image at 80007800 ...
   Image Name:   Linux-3.10.65
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2167000 Bytes = 2.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ...
OK
## Transferring control to Linux (at address 80008000)...

arch/arm/lib/bootm.c 72 Starting kernel ...

--r2 0x8096e120,images->ft_len= = 0 , working_fdt = 8096e120, bi_boot_params = 0 fake = 0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.65 (lq@assert) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #6 Thu Apr 12 16:46:36 CST 2018
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Allwinner A1X (Device Tree), model: sunivw1p1
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, Data cache writethrough
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat c04420a0, node_mem_map c0457000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x01c25000 loglevel=8 initcall_debug=1 console=ttyS1 init=/init root=/dev/mtdblock2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 32MB = 32MB total
[    0.000000] Memory: 27840k/27840k available, 4928k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff000000   ( 968 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03f4fdc   (4020 kB)
[    0.000000]       .init : 0xc03f5000 - 0xc0413b04   ( 123 kB)
[    0.000000]       .data : 0xc0414000 - 0xc0442780   ( 186 kB)
[    0.000000]        .bss : 0xc0442780 - 0xc0456228   (  79 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] of_sunxi_clocks_init : sunxi_clk_base[0xf1c20000]
[    0.000000] pll_cpu-set_default_rate=528000000 success!
[    0.000000] pll_video-set_default_rate=297000000 success!
[    0.000000] pll_ddr-set_default_rate=312000000 success!
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.005331] Calibrating delay loop... 262.96 BogoMIPS (lpj=1314816)
[    0.075240] pid_max: default: 32768 minimum: 301
[    0.080446] Mount-cache hash table entries: 512
[    0.086443] CPU: Testing write buffer coherency: ok
[    0.092225] Setting up static identity map for 0xc02d6f40 - 0xc02d6f98
[    0.101717] devtmpfs: initialized
[    0.107119] pinctrl core: initialized pinctrl subsystem
[    0.112881] NET: Registered protocol family 16
[    0.118581] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.126461] dump_class_init,821, success
[    0.135618] sunivw1p1-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.152930] No ATAGs?
[    0.162755] bio: create slab <bio-0> at 0
[    0.169190] SCSI subsystem initialized
[    0.173493] usbcore: registered new interface driver usbfs
[    0.179294] usbcore: registered new interface driver hub
[    0.185216] usbcore: registered new device driver usb
[    0.191530] Advanced Linux Sound Architecture Driver Initialized.
[    0.200152] cfg80211: Calling CRDA to update world regulatory domain
[    0.207196] [pm]aw_pm_init!
[    0.210476] [pm]aw_pm_valid!
[    0.213589] Notice: sunivw1p1 just support normal standby.
[    0.219255] [pm]aw_pm_valid!
[    0.222268] Notice: sunivw1p1 just support normal standby.
[    0.228311] Switching to clocksource suniv high-res couter
[    0.268087] codec_config
[    0.270878] (null).sta33x_pwrdn_gpio gpio=135,mul_sel=0,data:1
[    0.277018] codec_config: sta33x_pwrdn_gpio gpio num=135
[    0.282506] codec_request_gpio: test1
[    0.286378] codec_request_gpio: request gpio=135
[    0.291288] codec_request_gpio: L1167 Pin=1
[    0.295718] codec_request_gpio: request gpio(135) ok
[    0.314620] NET: Registered protocol family 2
[    0.321750] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.328999] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.335628] TCP: Hash tables configured (established 512 bind 512)
[    0.342145] TCP: reno registered
[    0.345613] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.351654] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.358753] NET: Registered protocol family 1
[    0.378502] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.385266] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.393104] msgmni has been set to 54
[    0.400276] io scheduler noop registered
[    0.404499] io scheduler deadline registered
[    0.409039] io scheduler cfq registered (default)
[    0.437504] sw_uart_request_gpio(753)
[    0.441362] uart0: ttyS0 at MMIO 0x1c25000 (irq = 103) is a SUNXI
[    0.449113] sw_uart_request_gpio(753)
[    0.452967] uart1: ttyS1 at MMIO 0x1c25400 (irq = 104) is a SUNXI
[    0.459390] sw_console_setup()1175 - console setup baud 115200 parity n bits 8, flow n
[    0.467684] console [ttyS1] enabled, bootconsole disabled
[    0.467684] console [ttyS1] enabled, bootconsole disabled
[    0.480364] misc dump reg init
[    0.487608] spi spi0: master is unqueued, this is deprecated
[    0.495441] NorFlash ID: 0xc22019 - 0xc220
[    0.500023] m25p80 spi0.0: found mx25l25635e, expected m25p64
[    0.506639] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.526714] Creating 8 MTD partitions on "(null)":
[    0.532057] 0x000000000000-0x000000080000 : "uboot"
[    0.540152] 0x000000080000-0x0000002c0000 : "boot"
[    0.548020] 0x0000002c0000-0x000000ac0000 : "rootfs"
[    0.556173] 0x000000ac0000-0x000000ae0000 : "env"
[    0.563897] 0x000000ae0000-0x000000af0000 : "bootlogo"
[    0.572362] 0x000000af0000-0x000000c70000 : "recoverk"
[    0.580788] 0x000000c70000-0x000000fb0000 : "recoverf"
[    0.589019] 0x000000fb0000-0x000000fc0000 : "private"
[    0.597611] usbcore: registered new interface driver usb-storage
[    0.604938] sunxi_hcd_host0 1c13000.otghci0-controller: sunxi_hcd host driver
[    0.612866] sunxi_hcd_host0 1c13000.otghci0-controller: new USB bus registered, assigned bus number 1
[    0.625197] hub 1-0:1.0: USB hub found
[    0.629428] hub 1-0:1.0: 1 port detected
[    0.635641] support report repeat key value. 
[    0.641166] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.649080] i2c /dev entries driver
[    0.653092] IR NEC protocol handler initialized
[    0.658695] pdev->dev.of_node name :cir
[    0.663260] Registered IR keymap rc_map_sunxi
[    0.670273] input: sunxi_ir_recv as /devices/soc.0/1c22c00.cir/rc/rc0/input1
[    0.678781] rc0: sunxi_ir_recv as /devices/soc.0/1c22c00.cir/rc/rc0
[    0.687891] sunxi-mmc 1c0f000.sdmmc: SD/MMC/SDIO Host Controller Driver(v0.30 2015-10-10 10:03) Compiled in Apr 12 2018 at 16:03:01
[    0.701212] sunxi-mmc 1c0f000.sdmmc: Can't get vmmc regulator string
[    0.708261] IR RX IRQ Serve
[    0.711352] sunxi_ir_recv_irq !!
[    0.714919] receive cnt :5 
[    0.718007] get frist pulse,add head 128 !!
[    0.722632] pusle :1, dur: 16277079 ns
[    0.726777] handle raw data.
[    0.730096] sunxi-mmc 1c0f000.sdmmc: Can't get vqmmc regulator string
[    0.737328] sunxi-mmc 1c0f000.sdmmc: Can't get vdmmc regulator string
[    0.744534] sunxi-mmc 1c0f000.sdmmc: Failed getting OCR mask: 0
[    0.751903] sunxi-mmc 1c0f000.sdmmc: *******************set host ocr**************************
[    0.762007] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    0.784194] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    0.814375] sunxi-mmc 1c0f000.sdmmc: base:0xf1c0f000 irq:107
[    0.820703] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 52, RTO !!
[    0.828442] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 52, RTO !!
[    0.835385] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    0.850983] 
[    0.850983] sunxi_daudio->tx_data_mode =0
[    0.859948] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    0.871861] failed to get headphone-dect gpio from dts,headphone-dect:-2
[    0.879978] no jack gpio or irq
[    0.889031] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 8, RTO !!
[    0.898168] sunxi-codec-machine sound.3:  sun8iw10codec <-> 1c23c00.cpudai0-controller mapping ok
[    0.908170] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[    0.915881] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[    0.923510] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[    0.931204] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[    0.938221] sunxi-codec-machine-i2s sound.5: ASoC: CODEC sta339.2-001c not registered
[    0.947012] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[    0.953807] 
[    0.953807] snd_soc_register_card failed -517
[    0.960434] platform sound.5: Driver sunxi-codec-machine-i2s requests probe deferral
[    0.969109] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[    0.976818] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[    0.984338] TCP: cubic registered
[    0.988082] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[    0.994941] Initializing XFRM netlink socket
[    0.999740] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.011463] NET: Registered protocol family 17
[    1.016760] VFP support v0.3: not present
[    1.023844] sunxi-codec-machine-i2s sound.5: ASoC: CODEC sta339.2-001c not registered
[    1.032663] 
[    1.032663] snd_soc_register_card failed -517
[    1.039463] platform sound.5: Driver sunxi-codec-machine-i2s requests probe deferral
[    1.048169] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 1, RTO !!
[    1.054991] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.067523] input: gpio_keys.6 as /devices/soc.0/gpio_keys.6/input/input2
[    1.076355] sunxi-codec-machine-i2s sound.5: ASoC: CODEC sta339.2-001c not registered
[    1.085180] 
[    1.085180] snd_soc_register_card failed -517
[    1.092077] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.100361] ALSA device list:
[    1.103693]   #0: audiocodec
[    1.107198] platform sound.5: Driver sunxi-codec-machine-i2s requests probe deferral
[    1.116590] async_waiting @ 1
[    1.119938] async_continuing @ 1 after 3 usec
[    1.138180] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.155716] devtmpfs: mounted
[    1.159135] async_waiting @ 1
[    1.162453] async_continuing @ 1 after 3 usec
[    1.167878] Freeing unused kernel memory: 120K (c03f5000 - c0413000)
/etc/init.d/rcS: line 12: /usr/sbin/net.sh: not found

/ # 




离线

楼主 #12 2018-04-20 10:54:00

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

占位





离线

楼主 #13 2018-04-20 10:54:03

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

占位





离线

楼主 #14 2018-04-25 10:59:15

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

https://whycan.cn/t_864.html

解决方法:

1.
/bin/bash: 行 2: /lichee/out/sun8iw8p1/linux/common/buildroot/external-toolchain/bin/arm-linux-gnueabi-gcc: 没有那个文件或目录

在网上查了一下,大概说是我的系统是64位的,而这个程序是32位的,存在兼容问题,需要安装lsb-core,即命令sudo apt-get install lsb-core。

2.但是在这之后又有了新的问题:
./arm-linux-gnueabi-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

这个问题安装一下下面软件就好了。
apt-get install lib32z1 lib32ncurses5
apt-get install lib32stdc++6

有几个问题需要处理。





离线

楼主 #16 2018-04-26 15:59:42

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

iki1120 说:

固件大小只有一半,不能正常启动kernel的原因可能是分区配置和产品配置的问题。
建议晕哥尝试:
    1,在linux-3.10上层目录执行./build.sh config进行产品配置
    2,在tools目录查找sys_partition.fex,使用nor的话,应该是sys_partition_nor.fex。
看看分区是否合理。

那个问题后来解决了。
现在是用全志官方软件根本烧不进去,
换几台电脑都不行,
一开始能烧进去的 img 现在换了5台都不行。

165923gsascz2dhd2tadmv.png

现在改用开源的 sunxi-fel, 一点问题都没有。
自己处理烧写地址问题.





离线

楼主 #18 2018-05-01 16:30:59

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

晚些出教程,
用主线u-boot, bsp linux, jffs2 文件系统,
sunxi-fel 直接烧写 spi flash.





离线

楼主 #21 2018-05-28 22:49:52

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

不好意思,最近忙一些项目,没有来得及学习f1c100s.

听泽畔群主说,大概下个月会推出硬解码固件和源码。





离线

楼主 #23 2018-06-04 11:38:03

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

wuxx 说:
晕哥 说:

晚些出教程,
用主线u-boot, bsp linux, jffs2 文件系统,
sunxi-fel 直接烧写 spi flash.

请教一下晕哥,我编译出来的sunivw1p1_linux_evb_uart0.img有30M,要在16M的spi flash里跑是不是还得在哪个地方配置一下重新编译?

官方的 img就酱紫的,V3s的img也会大于30M, 烧进去是没有问题的,原理不知。





离线

楼主 #25 2018-06-29 11:01:16

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

本帖九楼那个软件烧录。





离线

楼主 #28 2018-07-16 17:53:36

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

建议还是按 @assert 给出那个方法,用主线u-boot, 全志官方的linux 3.4.





离线

楼主 #30 2018-07-16 19:40:40

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

我记错了,V3s才是linux3.4
f1c100s 可能是 linux3.10。
dtb文件是全志用一个命令(具体哪个命令不记得了)把 .fex 文本文件生成的。





离线

楼主 #32 2018-07-16 20:18:29

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

这个不太记得了,全志f1c100s使用fex文件而不是dts的原因,估计是为了迎合老客户,他一直的做法都是用fex文本作为设备树。





离线

楼主 #33 2018-07-16 20:32:45

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

刚刚翻了一下与 assert 聊天记录, build.sh 执行后直接可以生成zImage和 dtb 文件。





离线

楼主 #35 2018-07-21 10:50:30

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

https://whycan.cn/t_1014.html

是按这个流程吗?





离线

楼主 #37 2018-07-21 10:56:55

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

按提示改下源码,gets改成fgets





离线

楼主 #38 2018-07-21 11:04:39

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

现在只要zImage和dtb,按这个流程有点复杂了,以后整理一个精简版的流程出来。





离线

楼主 #40 2018-07-23 16:43:58

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

gavin 说:

编译出现很多错误,不知为什么


/usr/bin/gcc  -I.     -O2 -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/include -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/usr/include -MT freading.o -MD -MP -MF .deps/freading.Tpo -c -o freading.o freading.c
/usr/bin/gcc  -I.     -O2 -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/include -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/usr/include -MT gl_linkedhash_list.o -MD -MP -MF .deps/gl_linkedhash_list.Tpo -c -o gl_linkedhash_list.o gl_linkedhash_list.c
In file included from clean-temp.h:22:0,
                 from clean-temp.c:23:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
In file included from freadahead.h:18:0,
                 from freadahead.c:20:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
In file included from freading.h:18:0,
                 from freading.c:20:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
Makefile:1279: recipe for target 'freading.o' failed
make[4]: *** [freading.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:1279: recipe for target 'freadahead.o' failed
make[4]: *** [freadahead.o] Error 1
mv -f .deps/fd-safer-flag.Tpo .deps/fd-safer-flag.Po
mv -f .deps/dup-safer-flag.Tpo .deps/dup-safer-flag.Po
Makefile:1279: recipe for target 'clean-temp.o' failed
make[4]: *** [clean-temp.o] Error 1
mv -f .deps/gl_linkedhash_list.Tpo .deps/gl_linkedhash_list.Po
make[4]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/lib'
Makefile:1083: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/lib'
Makefile:1023: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15'
Makefile:976: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15'
package/Makefile.package.in:289: recipe for target '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/.stamp_built' failed
make: *** [/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/.stamp_built] Error 2
make: Leaving directory '/root/linux_bsp/f1c600/buildroot'
ERROR: build buildroot Failed
root@e46b861a6d2d:~/linux_bsp/f1c600#


修改 lichee/out/sun8iw8p1/linux/common/buildroot/build/host-m4-1.4.15/lib/stdio.h

456 行改成这样:

#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif

参考: https://blog.csdn.net/luckywang1103/article/details/43968079





离线

楼主 #42 2018-08-02 08:29:43

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

二进制bin 打包
以16M 大小flash镜像打包脚本为例:

dd if=/dev/zero of=flashimg.bin bs=1M count=16 &&\
dd if=$YOUR_UBOOT_FILE of=flashimg.bin bs=1K conv=notrunc &&\
dd if=$YOUR_DTB_FILE of=flashimg.bin bs=1K seek=1024  conv=notrunc &&\
dd if=$YOUR_KERNEL_FILE of=flashimg.bin bs=1K seek=1088  conv=notrunc &&\
mkdir rootfs
tar -xzvf $YOUR_ROOTFS_FILE -C ./rootfs &&\
cp -r $YOUR_MOD_FILE  rootfs/lib/modules/ &&\
# 为根文件系统制作jffs2镜像包
# --pad参数指定 jffs2大小
# 由此计算得到 0x1000000(16M)-0x10000(64K)-0x100000(1M)-0x400000(4M)=0xAF0000
mkfs.jffs2 -s 0x100 -e 0x10000 --pad=0xAF0000 -d rootfs/ -o jffs2.img &&\
dd if=jffs2.img of=$YOUR_IMG_FILE  bs=1K seek=5184  conv=notrunc &&\
以上脚本通过对一个生成的16M空bin文件填充 uboot、dtb、kernel、rootfs 生成 16M 镜像,如需修改,请注意各个文件的大小,修改成对应地址(注意对齐)。

怎么烧进FLASH 启动不了?

把你的串口终端 log 贴出来吧,
没有log没办法判断问题的.





离线

楼主 #44 2018-08-02 19:34:02

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

一定要把串口输出先搞定,
这是uboot,kernel的基础。





离线

楼主 #46 2018-08-02 20:26:50

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8


只要烧uboot到tf卡,
串口就有输出。





离线

楼主 #48 2018-08-02 21:39:06

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

dtb 文件在 arch/arm/boot/ 目录下面

也可以用这个命令找:

find . | grep XXX.dtb

find 是查找命令,  点号是当前目录, | 是管道输出, grep 是从查找字符串

比如 f1c100s bsp linux 的dtb 位置:
/opt/c600/linux-3.10/arch/arm/boot/dts/sunivw1p1-evb.dtb





离线

楼主 #52 2018-08-03 07:19:30

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

仔细看下49楼出错信息,
应该是你的flash型号没有支持,
如果是这样,
开启配置文件就可以了,
你的是什么flash?





离线

楼主 #54 2018-08-03 09:12:23

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

w25q128

spi_flash@0:50000000: failed to activate chip-select 50000000
SF: error -2 reading JEDEC ID
Failed to initialize SPI flash at 0:50000000 (error -2)

你把spi 的时钟频率调低试一试.





离线

楼主 #57 2018-08-05 13:28:12

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

开发指南不存在的,全志对资料很保守,经常有全志的员工要求删帖,站长鸭梨也很大。





离线

楼主 #60 2018-08-05 17:48:10

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

帮我看看Nano的设备树在源码的 linux ‣ arch ‣ arm ‣ boot ‣ dts目录下为啥没有DTB文件?

./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb

QQ20180805174711.png





离线

楼主 #61 2018-08-05 18:01:21

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

dd if=/dev/zero of=flashimg.bin bs=16M count=1
dd if=../ubootmainline/u-boot/u-boot-sunxi-with-spl.bin of=flashimg.bin bs=1K conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb of=flashimg.bin bs=1K seek=1024  conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/zImage of=flashimg.bin bs=1K seek=1088  conv=notrunc
dd if=../zero_imager/jffs2/jffs2.img of=flashimg.bin  bs=1K seek=5184  conv=notrunc

按上面打包,为什么我打包出来的bin文件有105M多呢?

我刚刚试了一下,一切正常, 输入 16MB 的 flashimg.bin, 是不是你的 jffs2.img 文件有问题.





离线

楼主 #63 2018-08-05 19:45:22

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

我的在这个目录下找不到,是不是我下载的LINUX有问题?

http://nano.lichee.pro/build_sys/kernel.html
按这个一步一步走就可以了,我刚刚就是在干净的环境编译的。





离线

楼主 #65 2018-08-06 18:01:07

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

f1c100s本身BROM是支持 spi nand flash的, 著名网友 @assert 已经改出来了,但是目前没有开源.





离线

楼主 #67 2018-08-06 18:36:35

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

egsen 说:

http://nano.lichee.pro/build_sys/kernel.html
按这个一步一步走就可以了,我刚刚就是在干净的环境编译的
我就是 按这个步骤来的

然后还是没生成  arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb ?





离线

楼主 #70 2018-08-06 19:12:32

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

感觉还是你操作不对,
不过你可以试一试用命令直接把dts编译成dtb文件。
具体命令你先搜索一下





离线

楼主 #72 2018-08-07 10:44:14

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

看起来设备树文件(dtb)出问题?





离线

楼主 #77 2018-08-10 08:03:00

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

*.ko 文件拷贝到根文件系统的 lib/modules/ 目录
没有 ko 文件可以忽略.





离线

楼主 #79 2018-09-08 11:52:25

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

楼上的朋友, 想问什么问题呢?





离线

楼主 #81 2018-09-19 15:51:09

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

感谢分享!





离线

楼主 #85 2018-12-28 22:07:47

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

@qinxiongxu framebuffer 是有的.

你烧我3楼的固件试一试。





离线

楼主 #87 2019-01-09 08:07:20

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

qinxiongxu 说:

这个固件是800x480的吗,起来显示竖向的RGB颜色条,但是有花屏的方块在不断变化,闪烁。。。

一跑那个fb-test那个程序,内核会奔溃,包内存越界的错误。

我的是lichee nano配套的5寸800x480分辨率的,是我的屏跟你们不同?

我记得当时也是在 5寸800x480 LCD 测试的.





离线

楼主 #89 2019-01-11 18:09:37

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

monosail 说:

我这边是怎么着都显示“尚未检测到设备接入电脑”。请问正确的操作应该是怎样的?
我就是把SPI Flash的CS叫接地,然后接上USB,Windows的设备管理器里面会有设备,PhoenixSuit虽然会跳出来界面,但是一直都是“尚未检测到设备接入电脑)

接上串口线,可以看到log,会显示原因的





离线

楼主 #91 2019-01-11 18:28:55

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

PhoenixSuit虽然会跳出来界面,

说明USB通讯正常, 软件会把 u-boot 下进去跑, 你看下 sys_config.fex 配置的调试串口是哪一个,

然后接对应的串口看调试信息,

荔枝派nano的 PA 0 .. 3 丝印反了, 注意一下。





离线

楼主 #93 2019-06-14 14:34:13

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

800x480 没有问题: https://whycan.cn/t_1522.html

把奔溃 log 贴上来看下





离线

楼主 #99 2019-06-22 15:22:26

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

zdl229892205 说:

楼主你好,请问如何运行官方SDK中的示例程序

https://whycan.cn/t_1522.html#p8073

可以按照这个第5步,先编译,然后拷贝





离线

楼主 #105 2019-10-23 09:40:16

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

$YOUR_MOD_FILE 即目录下所有的 .ko 文件, 上面这个命令不好, 用 make modules_install 命令更好:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/whycan/c3e8d3c2  make modules_install

假设/media/whycan/c3e8d3c2是你的文件系统目录.





离线

楼主 #107 2019-10-23 09:52:45

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

运行的目录是Linux源码所在的目录。

如果当前目录不是 Linux源码目录,可以用 -C 参数指定就行:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/whycan/c3e8d3c2  make -C /opt/linux modules_install





离线

楼主 #109 2019-10-23 16:50:24

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

bsp 那个要看文档,套路有很多不同,不走寻常路。





离线

楼主 #113 2019-11-14 11:51:47

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

hxhlb 说:

所以到底我应该从哪里找到f1c100s的bsp 楼上各位大佬..跪求帮助.

他可能后来删了:
git clone https://github.com/qq516333132/c600.git


这个是荔枝派很早以前分享的文件: f1c600.tar.bz2
md5: d7ba43ff533948d6cd0455cf6f742a10
crc32: 1fc536dd





离线

楼主 #115 2019-11-27 17:59:59

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

接上串口,u-boot有错误信息输出的。





离线

楼主 #117 2019-11-27 18:31:05

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

Vivian 说:

只提示fes1 init end就没有别的log了……

感觉 dram  没有初始化成功。

你的板子是荔枝派还是自己做的,要不烧个 路漫漫的固件看下硬件有没有问题。





离线

楼主 #120 2019-12-14 18:16:00

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

改 sys_config.fex 的这部分:

lcd_x = 800
lcd_y = 480

改为:

lcd_x = 480
lcd_y = 272





离线

楼主 #122 2019-12-14 18:31:16

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

lcd_used = 1

=>

lcd_used = 0





离线

楼主 #127 2019-12-14 21:19:36

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp





离线

楼主 #130 2019-12-15 16:55:40

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

@Biftor 不可能啊, 我的都可以, https://whycan.cn/t_1522.html#p8133

要不你先烧上面的固件试一试, 需要 spi nor flash





离线

楼主 #132 2019-12-15 17:06:25

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

不太记得了, 可能是 MX25L128, 但是你最好买 MX25L256, 比较保险.





离线

楼主 #134 2019-12-15 18:03:23

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

应该可以, 不完全确定.





离线

楼主 #136 2019-12-16 16:50:50

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

那个 img 文件是全志sdk打包的,不能用sunxi-fel烧录,要用全志官方的烧录软件烧录。





离线

楼主 #138 2019-12-16 17:14:28

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

接上串口,看输出什么?





离线

楼主 #140 2019-12-16 17:38:31

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

有几组串口都要试一下,或者打开 sys_comfig.fex 确认一下到底用哪组串口。





离线

楼主 #142 2019-12-16 18:39:27

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

Biftor 说:

the problem is not Serial port or serial tools.

the problem is burn the img to device .

对,是这个问题,但是串口会显示更多错误信息。





离线

楼主 #146 2019-12-18 18:32:43

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 【1】step by step 编译全志 f1c100s 官方linux bsp

这就尴尬了, 我也忘记改了啥了.





离线

页脚

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

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