gcc-4.8-multilib-arm-linux-gnueabihf安装报错
qslia@qsliapc:~/Linux_SDK$ sudo apt-get install gcc-4.8-multilib-arm-linux-gnueabihfReading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-4.8-multilib-arm-linux-gnueabihf
E: Couldn't find any package by glob 'gcc-4.8-multilib-arm-linux-gnueabihf'
E: Couldn't find any package by regex 'gcc-4.8-multilib-arm-linux-gnueabihf'
本帖最后由 qslia 于 2019-12-7 14:19 编辑
编译 Ubuntu 固件(GPT)
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ ./build.sh aio-rk3399pro-jd4.mk
===============================
ERR:aio-rk3399pro-jd4.mk not found
Can't found build config, please check again
ls device/rockchip/rkxxxx
====USAGE: build.sh modules====
uboot -build uboot
kernel -build kernel
extboot -build extlinux boot.img, boot from EFI partition
rootfs -build default rootfs, currently build buildroot as default
buildroot -build buildroot rootfs
yocto -build yocto rootfs, currently build ros as default
ros -build ros rootfs
debian -build debian rootfs
pcba -build pcba
recovery -build recovery
all -build uboot, kernel, rootfs, recovery image
cleanall -clean uboot, kernel, rootfs, recovery
firmware -pack all the image we need to boot up system
updateimg -pack update image
sdbootimg -pack sdboot image
sdupdateimg -pack sdupdate image
save -save images, patches, commands used to debug
default -build all modules
BoardConfig Board-select Board and it's BoardConfig.mk 本帖最后由 qslia 于 2019-12-7 14:18 编辑
qslia 发表于 2019-12-7 13:49
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ ./build.sh aio-rk3399pro-jd4.mk
====================== ...
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ source envsetup.sh
Top of tree: /home/qslia/Linux_SDK/firefly/linux_sdk
You're building on Linux
Lunch menu...pick a combo:
1. rockchip_px30_32
2. rockchip_px30_64
3. rockchip_px30_64_open
4. rockchip_px30_recovery
5. rockchip_px30_robot32
6. rockchip_px30_robot64
7. rockchip_px30_robot64_no_gpu
8. rockchip_px3se
9. rockchip_px3se_recovery
10. rockchip_rk1808
11. rockchip_rk1808-multi
12. rockchip_rk1808_recovery
13. rockchip_rk3036
14. rockchip_rk3036_recovery
15. rockchip_rk3128
16. rockchip_rk3128_recovery
17. rockchip_rk3229
18. rockchip_rk3229_recovery
19. rockchip_rk3288
20. rockchip_rk3288_recovery
21. rockchip_rk3308_32_debug
22. rockchip_rk3308_32_dueros
23. rockchip_rk3308_32_mini_release
24. rockchip_rk3308_32_release
25. rockchip_rk3308_64_dueros
26. rockchip_rk3308_b_32_release
27. rockchip_rk3308_b_release
28. rockchip_rk3308_gk_32_release
29. rockchip_rk3308_mini_release
30. rockchip_rk3308_pcba
31. rockchip_rk3308_recovery
32. rockchip_rk3308_release
33. rockchip_rk3308_robot32
34. rockchip_rk3308_robot64
35. rockchip_rk3326_32
36. rockchip_rk3326_64
37. rockchip_rk3326_64_open
38. rockchip_rk3326_recovery
39. rockchip_rk3326_robot32
40. rockchip_rk3326_robot64
41. rockchip_rk3326_robot64_no_gpu
42. rockchip_rk3328
43. rockchip_rk3328_recovery
44. rockchip_rk3399
45. rockchip_rk3399pro
46. rockchip_rk3399pro-npu
47. rockchip_rk3399pro_recovery
48. rockchip_rk3399_recovery
49. rockchip_rv1108
Which would you like? : 46
#TARGET_BOARD=rk3399pro-npu
#OUTPUT_DIR=output/rockchip_rk3399pro-npu
#CONFIG=rockchip_rk3399pro-npu_defconfig
===========================================
make: Entering directory '/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot'
mkdir -p /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
obj=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config -C support/kconfig -f Makefile.br conf
make: Entering directory '/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/support/kconfig'
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE-I/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config -DCONFIG_=\"\"-MM *.c > /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/.depend 2>/dev/null || :
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE-I/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/conf.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE-I/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config -DCONFIG_=\"\"-I. -c /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/zconf.tab.c -o /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/zconf.tab.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE-I/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config -DCONFIG_=\"\" /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/conf.o /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/zconf.tab.o-o /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/conf
rm /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/zconf.tab.c
make: Leaving directory '/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/support/kconfig'
GEN /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/Makefile
/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/build/defconfig_hook.py -m /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/configs/rockchip_rk3399pro-npu_defconfig /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/tristate.config BR2_CONFIG=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build SKIP_LEGACY= BR2_DEFCONFIG=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/configs/rockchip_rk3399pro-npu_defconfig /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/build/buildroot-config/conf --defconfig=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/.rockchipconfig Config.in
#
# configuration written to /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro-npu/.config
#
make: Leaving directory '/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot'
本帖最后由 qslia 于 2019-12-7 14:18 编辑
./build.sh kernel
Building modules, stage 2.
MODPOST 4 modules
CC drivers/net/wireless/mwifiex/mwifiex.mod.o
CC drivers/net/wireless/mwifiex/mwifiex_sdio.mod.o
CC drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.mod.o
CC drivers/net/wireless/rockchip_wlan/rtl8188eu/8188eu.mod.o
LD drivers/net/wireless/mwifiex/mwifiex_sdio.ko
LD drivers/net/wireless/rockchip_wlan/rtl8188eu/8188eu.ko
LD drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.ko
LD drivers/net/wireless/mwifiex/mwifiex.ko
Pack to resource.img successed!
Image:resource.img (with rk3399pro-evb-v11-linux.dtb logo.bmp ) is ready
Image:boot.img (with Image resource.img) is ready
Image:zboot.img (with Image.lz4 resource.img) is ready
/home/qslia/Linux_SDK/firefly/linux_sdk
====Build kernel ok!====
./build.sh uboot
load addr is 0x200000!
pack input ./u-boot.bin
pack file size: 860863
crc = 0x8f16156b
uboot version: U-Boot 2017.09-g14ce716885 (Dec 07 2019 - 14:21:02)
pack uboot.img success!
pack uboot okay! Input: ./u-boot.bin
out:rk3399pro_loader_v1.20.115.bin
fix opt:rk3399pro_loader_v1.20.115.bin
merge success(rk3399pro_loader_v1.20.115.bin)
pack loader okay! Input: /home/qslia/Linux_SDK/firefly/linux_sdk/rkbin/RKBOOT/RK3399PROMINIALL.ini
/home/qslia/Linux_SDK/firefly/linux_sdk/u-boot
out:trust.img
merge success(trust.img)
/home/qslia/Linux_SDK/firefly/linux_sdk/u-boot
pack trust okay! Input: /home/qslia/Linux_SDK/firefly/linux_sdk/rkbin/RKTRUST/RK3399PROTRUST.ini
Platform RK3399PRO is build OK, with new .config(make rk3399pro_defconfig)
/home/qslia/Linux_SDK/firefly/linux_sdk
====Build uboot ok!====
./build.sh recovery
编译recovery真的是久。。。
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 23267.11 Kbytes (22.72 Mbytes)
52.12% of uncompressed filesystem size (44641.12 Kbytes)
Inode table size 6771 bytes (6.61 Kbytes)
26.12% of uncompressed inode table size (25921 bytes)
Directory table size 7072 bytes (6.91 Kbytes)
55.04% of uncompressed directory table size (12848 bytes)
Number of duplicate files found 6
Number of inodes 697
Number of files 244
Number of fragments 29
Number of symbolic links356
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 96
Number of ids (unique uids + gids) 2
Number of uids 2
root (0)
www-data (33)
Number of gids 2
root (0)
www-data (33)
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
>>> Generating root filesystem image rootfs.tar
rm -rf /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs
mkdir -p /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs
echo '#!/bin/sh' > /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
echo "set -e" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
echo "chown -h -R 0:0 /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
printf ' - - input -1 * - - - Input device group\n\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/users_table.txt
PATH="/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/bin:/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/support/scripts/mkusers /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/users_table.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
cat system/device_table.txt > /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/device_table.txt
printf ' /bin/busybox f 4755 00 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/device_table.txt
echo "/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/bin/makedevs -d /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/device_table.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
printf ' (cd /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target; find -print0 | LC_ALL=C sort -z | tar-cf /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/images/rootfs.tar --null --no-recursion -T - --numeric-owner)\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
chmod a+x /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
rm -f /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
PATH="/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/bin:/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/host/bin/fakeroot -- /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/fakeroot.fs
rootdir=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target
table='/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/build/buildroot-fs/device_table.txt'
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
====Build recovery ok!====
pack recovery image...done.
you take 24:19.04 to build recovery
====Build recovery ok!====
本帖最后由 qslia 于 2019-12-7 16:13 编辑
./build.sh rootfs 尽管官网提供了编译好的img,但还是自己编译感受下
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 124218.52 Kbytes (121.31 Mbytes)
38.53% of uncompressed filesystem size (322416.52 Kbytes)
Inode table size 64243 bytes (62.74 Kbytes)
30.20% of uncompressed inode table size (212732 bytes)
Directory table size 63046 bytes (61.57 Kbytes)
49.86% of uncompressed directory table size (126443 bytes)
Number of duplicate files found 42
Number of inodes 5995
Number of files 4688
Number of fragments 467
Number of symbolic links638
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 668
Number of ids (unique uids + gids) 3
Number of uids 3
root (0)
qslia (1000)
www-data (33)
Number of gids 3
root (0)
qslia (1000)
www-data (33)
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
>>> Generating root filesystem image rootfs.tar
rm -rf /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs
mkdir -p /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs
echo '#!/bin/sh' > /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
echo "set -e" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
echo "chown -h -R 0:0 /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
printf ' dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user\n - - input -1 * - - - Input device group\n sshd -1 sshd -1 * - - - SSH drop priv user\n\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/users_table.txt
PATH="/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/bin:/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/support/scripts/mkusers /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/users_table.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
cat system/device_table.txt > /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/device_table.txt
printf ' /bin/busybox f 4755 00 - - - - -\n /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -\n /bin/ping f 4755 0 0 - - - - -\n /bin/traceroute6 f 4755 0 0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/device_table.txt
echo "/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/bin/makedevs -d /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/device_table.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target" >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
printf ' (cd /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target; find -print0 | LC_ALL=C sort -z | tar-cf /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/images/rootfs.tar --null --no-recursion -T - --numeric-owner)\n' >> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
chmod a+x /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
rm -f /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
PATH="/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/bin:/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/host/bin/fakeroot -- /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/fakeroot.fs
rootdir=/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target
table='/home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/build/buildroot-fs/device_table.txt'
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
pack buildroot image at: /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/images/rootfs.ext4
you take 1:12:45 to build builroot
====Build buildroot ok!====
本帖最后由 qslia 于 2019-12-7 16:25 编辑
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ ./mkfirmware.sh
create rootfs.img...done.
create parameter...done.
create recovery.img...done.
create misc.img...done.
create oem.img...SIZE = 8192
genext2fs -b 8192 -N 2048 -d /home/qslia/Linux_SDK/firefly/linux_sdk/device/rockchip/oem/oem_normal /home/qslia/Linux_SDK/firefly/linux_sdk/rockdev/oem.img
e2fsck 1.44.1 (24-Mar-2018)
Filesystem did not have a UUID; generating one.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/qslia/Linux_SDK/firefly/linux_sdk/rockdev/oem.img: 16/2048 files (0.0% non-contiguous), 6599/8192 blocks
done.
create userdata.img...SIZE = 3072
genext2fs -b 3072 -N 768 -d /home/qslia/Linux_SDK/firefly/linux_sdk/device/rockchip/userdata/userdata_normal /home/qslia/Linux_SDK/firefly/linux_sdk/rockdev/userdata.img
e2fsck 1.44.1 (24-Mar-2018)
Filesystem did not have a UUID; generating one.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/qslia/Linux_SDK/firefly/linux_sdk/rockdev/userdata.img: 14/768 files (0.0% non-contiguous), 525/3072 blocks
done.
create uboot.img...done.
error: /home/qslia/Linux_SDK/firefly/linux_sdk/u-boot/idbloader.img not found! ------->>>这是啥??
create trust.img...done.
create loader...done.
create boot.img...done.
Image: image in rockdev is ready
本帖最后由 qslia 于 2019-12-7 16:40 编辑
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ ls
appbuildrootbuild.shdebiandevicedistrodocsenvsetup.shexternalkernelMakefilemkfirmware.shprebuiltsrkbinrkflash.shrockdevtoolsu-boot
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ cd rockdev
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk/rockdev$ ls
boot.imgMiniLoaderAll.binmisc.imgoem.imgparameter.txtrecovery.imgrootfs.imgtrust.imguboot.imguserdata.img
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk$ ./build.sh updateimg
Make update.img
start to make update.img...
Android Firmware Package Tool v1.65
------ PACKAGE ------
Add file: ./package-file
Add file: ./Image/MiniLoaderAll.bin
Add file: ./Image/parameter.txt
Add file: ./Image/trust.img
Add file: ./Image/uboot.img
Add file: ./Image/misc.img
Add file: ./Image/boot.img
Add file: ./Image/recovery.img
Add file: ./Image/rootfs.img
Add file: ./Image/oem.img
Add file: ./Image/userdata.img
Add CRC...
Make firmware OK!
------ OK ------
********RKImageMaker ver 1.66********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!
Making ./Image/update.img OK.
/home/qslia/Linux_SDK/firefly/linux_sdk
Make update image ok!
Img_path:/home/qslia/Linux_SDK/firefly/linux_sdk/rockdev/update.img
qslia@qsliapc:~/Linux_SDK/firefly/linux_sdk/rockdev$ ls -hl
total 591M
lrwxrwxrwx 1 qslia qslia 55 12月7 16:23 boot.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/kernel/boot.img
lrwxrwxrwx 1 qslia qslia 77 12月7 16:23 MiniLoaderAll.bin -> /home/qslia/Linux_SDK/firefly/linux_sdk/u-boot/rk3399pro_loader_v1.20.115.bin
lrwxrwxrwx 1 qslia qslia 81 12月7 16:23 misc.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/device/rockchip/rockimg/wipe_all-misc.img
-rw-r--r-- 1 qslia qslia 8.0M 12月7 16:23 oem.img
lrwxrwxrwx 1 qslia qslia 89 12月7 16:23 parameter.txt -> /home/qslia/Linux_SDK/firefly/linux_sdk/device/rockchip/rk3399pro/parameter-buildroot.txt
lrwxrwxrwx 1 qslia qslia104 12月7 16:23 recovery.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro_recovery/images/recovery.img
lrwxrwxrwx 1 qslia qslia 94 12月7 16:23 rootfs.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/buildroot/output/rockchip_rk3399pro/images/rootfs.ext4
lrwxrwxrwx 1 qslia qslia 56 12月7 16:23 trust.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/u-boot/trust.img
lrwxrwxrwx 1 qslia qslia 56 12月7 16:23 uboot.img -> /home/qslia/Linux_SDK/firefly/linux_sdk/u-boot/uboot.img
-rw-r--r-- 1 qslia qslia 580M 12月7 16:29 update.img
-rw-r--r-- 1 qslia qslia 3.0M 12月7 16:23 userdata.img
页:
[1]
2