挖坑网/填坑网 DebugDump Forum

别人挖坑默默填上,自己挖坑含泪填上。天下没有填不了的坑,只有不会填坑的人。来吧,加入我们,挖坑行,填坑你更行! 站长QQ: 516333132 点击这里给我发消息

您尚未登录。

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

step by step 编译全志 f1c100s 官方linux bsp

参考链接1: 感谢荔枝派群主泽畔友情赠送的nano f1c100s开发板、液晶屏、电容触摸屏.

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

如果你的姿势是:

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

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

占位

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

QQ20180419184335.png

QQ20180419184340.png

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

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

QQ20180419204822.png

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

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

占位

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

占位

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

https://debugdump.com/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

有几个问题需要处理。

离线

#15 2018-04-26 15:42:24

iki1120
会员
注册时间: 2018-03-02
累计发帖: 2

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

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

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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, 一点问题都没有。
自己处理烧写地址问题.

离线

#17 2018-05-01 14:57:57

1066950103
会员
注册时间: 2017-11-17
累计发帖: 21

Re: 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。
看看分区是否合理。

请假一下你编译出来了且能正常运行么?用的nor flash 么? 多大的呢? 还有就是需要调整分区参数么?这个linux跑起来之后就只有个 shell 么 有没有简单的应用程序在跑呢?

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

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

离线

#19 2018-05-17 16:40:36

dgtg
会员
注册时间: 2017-11-08
累计发帖: 13

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

晕哥 说:

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

晕哥,有更新了没?
等教程...

离线

#20 2018-05-28 22:41:28

1066950103
会员
注册时间: 2017-11-17
累计发帖: 21

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

晕哥 说:

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

晕哥我继续关注这教程 好久出一个撒? 那里面的硬解码有攻破么?

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

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

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

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

离线

#22 2018-06-04 10:22:37

wuxx
会员
注册时间: 2018-01-03
累计发帖: 1

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

晕哥 说:

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

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

离线

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

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 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, 烧进去是没有问题的,原理不知。

离线

页脚