CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 73|回复: 0

CB2-uboot2020+linux6-eMMC启动篇

[复制链接]
发表于 前天 14:27 | 显示全部楼层 |阅读模式
本帖最后由 Andy201 于 2024-11-12 16:06 编辑

紧接:CB2-uboot2020+linux6-卡启动篇,在此书写 eMMC 启动

系统配置:主线内核6.0 + u-boot2020

硬件要求
  • CubieBoard2 板子 x1
  • 读卡器和容量大于 4G 的 micro SD 卡 x1 (也叫 TF 卡),建设使用闪迪或金士顿的 Class 10 卡
  • 主机一台
  • TTL 串口线或者使用显示器及鼠标键盘进入系统控制台

软件要求
  • 主机操作系统:请使用 Ubuntu16.04 64 位操作系统(或更往上版本)
  • 安装交叉编译环境:gcc version 7.5.0 (Linaro GCC 7.5-2019.12)
  • qemu
  • debootstrap

eMMC启动所需文件
  • u-boot-sunxi-with-spl.bin
  • sun7i-a20-cubieboard2.dtb
  • zImage
  • rootfs
  • boot.scr

整个操作流程如下
  • 获取 eMMC 所需文件
  • 从官方网盘下载 CB2 卡启动固件
  • 将卡启动固件用 dd 命令(Linux)或 win32 (windows)工具写进 SD卡
  • 将SD卡插入PC,把eMMC所需文件放进 SD卡 内
  • 将SD卡插入CB2上电启动,对 eMMC 进行分区
  • 将SD卡插入CB2上电启动,把 eMMC 所需文件放进对应的 eMMC 分区内


获取 eMMC 所需文件 u-boot-sunxi-with-spl.bin
  • 下载 u-boot 源码
  • 切换分支到 v2020.01 (自行选择,在这里我用的是这个分支)
  • 修改代码
  • 编译
  1. # u-boot 源码也提供两个仓库地址,任选一个即可
  2. # github 仓库
  3. git clone https://github.com/u-boot/u-boot.git
  4. # gitee 镜像仓库
  5. git clone https://gitee.com/mirrors/u-boot.git

  6. # 切换分支
  7. git tag
  8. git checkout v2020.01
复制代码
    添加 arch/arm/dts/sun7i-a20-cubieboard2-emmc.dtsconfigs/Cubieboard2-emmc_defconfig
    修改 arch/arm/dts/Makefile

    sun7i-a20-cubieboard2-emmc.dts
  1. /*sun7i-a20-cubieboard2-emmc.dts*/

  2. #include "sun7i-a20-cubieboard2.dts"

  3. / {
  4.         model = "Olimex A20-OLinuXino-MICRO-eMMC";
  5.         compatible = "olimex,a20-olinuxino-micro-emmc", "allwinner,sun7i-a20";

  6.         mmc2_pwrseq: pwrseq {
  7.                 compatible = "mmc-pwrseq-emmc";
  8.                 //reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>;
  9.                 reset-gpios = <&pio 2 24 GPIO_ACTIVE_LOW>;
  10.         };
  11. };

  12. &mmc2 {
  13.         vmmc-supply = <®_vcc3v3>;
  14.         bus-width = <4>;
  15.         non-removable;
  16.         mmc-pwrseq = <&mmc2_pwrseq>;
  17.         status = "okay";

  18.         emmc: emmc@0 {
  19.                 reg = <0>;
  20.                 compatible = "mmc-card";
  21.                 broken-hpi;
  22.         };
  23. };
复制代码
    注意:pio 2 24 为 PC24 pin脚,可查看 CB2 原理图

     

     

    Cubieboard2-emmc_defconfig
  1. #Cubieboard2-emmc_defconfig

  2. CONFIG_ARM=y
  3. CONFIG_ARCH_SUNXI=y
  4. CONFIG_NR_DRAM_BANKS=1
  5. CONFIG_SPL=y
  6. CONFIG_MACH_SUN7I=y
  7. CONFIG_DRAM_CLK=480
  8. CONFIG_MMC0_CD_PIN="PH1"
  9. CONFIG_SUPPORT_EMMC_BOOT=y
  10. CONFIG_MMC_SUNXI_SLOT_EXTRA=2
  11. CONFIG_SATAPWR="PB8"
  12. CONFIG_AHCI=y
  13. # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
  14. CONFIG_USE_PREBOOT=y
  15. CONFIG_SPL_I2C_SUPPORT=y
  16. # CONFIG_SPL_DOS_PARTITION is not set
  17. # CONFIG_SPL_EFI_PARTITION is not set
  18. CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-cubieboard2-emmc"
  19. CONFIG_SYS_RELOC_GD_ENV_ADDR=y
  20. CONFIG_SCSI_AHCI=y
  21. #CONFIG_ETH_DESIGNWARE=y
  22. #CONFIG_MII=y
  23. #CONFIG_SUN7I_GMAC=y
  24. CONFIG_SCSI=y
  25. CONFIG_USB_EHCI_HCD=y
  26. CONFIG_USB_OHCI_HCD=y
  27. CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
复制代码
    arch/arm/dts/Makefile
  1. diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
  2. index 0127a91..9e226b0 100644
  3. --- a/arch/arm/dts/Makefile
  4. +++ b/arch/arm/dts/Makefile
  5. @@ -459,6 +459,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \\
  6.         sun7i-a20-bananapi-m1-plus.dtb \\
  7.         sun7i-a20-bananapro.dtb \\
  8.         sun7i-a20-cubieboard2.dtb \\
  9. +       sun7i-a20-cubieboard2-emmc.dtb \\
  10.         sun7i-a20-cubietruck.dtb \\
  11.         sun7i-a20-hummingbird.dtb \\
  12.         sun7i-a20-i12-tvbox.dtb \\
复制代码
    编译
  1. #编译命令,选择新添加版型 Cubieboard2-emmc
  2. make distclean CROSS_COMPILE=arm-linux-gnueabihf-
  3. make CROSS_COMPILE=arm-linux-gnueabihf- Cubieboard2-emmc_defconfig
  4. make  CROSS_COMPILE=arm-linux-gnueabihf-
复制代码
    注意:编译期间缺失的工具,工具报错打印提示自行安装。
     

      至此,u-boot-sunxi-with-spl.bin 已生成。



获取 eMMC 所需文件 sun7i-a20-cubieboard2.dtb zImage
  • 下载主线内核源码
  • 切换分支至 v6.1-rc8
  • 修改代码
  • 编译
  1. # linux 源码仓库在 gitlab、github 上由 Linus Torvalds 维护
  2. git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  3. git clone https://github.com/torvalds/linux.git

  4. # 由于 github 连接不稳定等原因,我们可以通过其它方式获取源码 —— 由 Gitee 官方
  5. # 提供的 Linux 源码的镜像仓库,每天同步一次。
  6. git clone https://gitee.com/mirrors/Linux.git

  7. # 目前(2024.9.13)最新的 v6.1 版本为 v6.1-rc8,所以这里选择 v6.1-rc8 版本。
  8. # 查看内核版本分支
  9. git branch -a       # 查看所有分支
  10. git fetch --tags    # 获取最新标签
  11. git tag | grep v6   # 查看并筛选标签名
  12. # 根据标签创建分支
  13. git checkout tags/v6.1-rc8
复制代码
  1. #在 arch/arm/configs/ 目录下有许多开发板的预定义配置文件,这里我们选择 Allwinner Cubieboard2 的 sunxi_defconfig
  2. #以 sunxi_defconfig 为基础,生成 .config 配置文件

  3. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sunxi_defconfig

  4. ......
  5. #
  6. # configuration written to .config
  7. #
复制代码
    修改 sun7i-a20-cubieboard2.dts
  1. diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  2. index e35e699..386c121 100644
  3. --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  4. +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  5. @@ -53,6 +53,11 @@
  6.         model = "Cubietech Cubieboard2";
  7.         compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";

  8. +       mmc2_pwrseq: pwrseq {
  9. +               compatible = "mmc-pwrseq-emmc";
  10. +               reset-gpios = <&pio 2 24 GPIO_ACTIVE_LOW>;
  11. +       };
  12. +
  13.         aliases {
  14.                 serial0 = &uart0;
  15.         };
  16. @@ -117,7 +122,7 @@
  17.         pinctrl-0 = <&gmac_mii_pins>;
  18.         phy-handle = <&phy1>;
  19.         phy-mode = "mii";
  20. -       status = "okay";
  21. +       status = "disabled";
  22. };

  23. &hdmi {
  24. @@ -157,6 +162,20 @@
  25.         status = "okay";
  26. };

  27. +&mmc2 {
  28. +       vmmc-supply = <®_vcc3v3>;
  29. +       bus-width = <4>;
  30. +       non-removable;
  31. +       mmc-pwrseq = <&mmc2_pwrseq>;
  32. +       status = "okay";
  33. +
  34. +       emmc: emmc@0 {
  35. +               reg = <0>;
  36. +               compatible = "mmc-card";
  37. +               broken-hpi;
  38. +       };
  39. +};
  40. +
  41. &gmac_mdio {
  42.         phy1: ethernet-phy@1 {
  43.                 reg = <1>;
复制代码
    注意:pio 2 24 为 PC24 pin脚,此处只修改了 dts,无添加新文件,此修改方法,u-boot 也可效仿。
     
    编译
  1. #开始编译
  2. make -j$(nproc) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage dtbs
  3. ......
  4.   OBJCOPY arch/arm/boot/zImage
  5.   Kernel: arch/arm/boot/zImage is ready
复制代码
   

     注意:kernel 可能会编译报错,记录如下问题

     

    至此,zImagesun7i-a20-cubieboard2.dts 已生成。



获取 eMMC 所需文件 根文件系统 rootfs
  • 下载根文件系统包
  • 配置根文件系统 rootfs
  • 备份打包 rootfs
  1. ## man debootstrap :
  2. # --no-check-gpg :Disables checking gpg signatures of retrieved Release files.
  3. #
  4. # 从 man 的示例 “debootstrap stretch ./stretch-chroot http://deb.debian.org/debian” 可知:
  5. # 这里允许自定义下载源,官方的地址已经不支持 wheezy 版本,这里通过指定阿里源来指定 debian 版本为 fullseye 或 bookworm
  6. #
  7. debootstrap --foreign --no-check-gpg --arch armhf bullseye . http://mirrors.aliyun.com/debian/

  8. # 如果要制作 ubuntu 根文件系统,则需要指定 ubuntu 的源
  9. debootstrap --foreign --no-check-gpg --arch armhf jammy . https://mirrors.aliyun.com/ubuntu-ports/

  10. cp /usr/bin/qemu-arm-static usr/bin/
  11. LC_ALL=C LANGUAGE=C LANG=C chroot . /debootstrap/debootstrap --second-stage
复制代码
    注意:可能需要用到 sudo
     

     

  1. #下载不易,先行保存一份备用
  2. andy@andy:/work3/test/a20/rootfs$
  3. andy@andy:/work3/test/a20/rootfs$ ls
  4. bin  boot  dev  etc  home  lib  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
  5. andy@andy:/work3/test/a20/rootfs$ cd ../
  6. andy@andy:/work3/test/a20$ ls
  7. boot.cmd    boot.cmd_2  chroot-armhf-bullseye-20241024_160515.tar.gz  Linux-v6.1.tar.gz  u-boot              uImage
  8. boot.cmd_1  boot.scr    Linux                                         rootfs             u-boot-2024.tar.gz
  9. andy@andy:/work3/test/a20$ sudo tar -czvf chroot-armhf_bullseye_cb2_`date +%Y%m%d_%H%M%S`.tar.gz rootfs/
复制代码
  1. #配置根文件系统

  2. sudo chroot . passwd
  3. sudo chroot .
  4. echo "Cubieboard2" > etc/hostname && cat etc/hostname
  5. echo "127.0.0.1 Cubieboard2" >> etc/hosts && cat etc/hosts
  6. echo T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 >> etc/inittab && cat etc/inittab
  7. apt-get update
  8. apt-get install openssh-server locales wireless-tools wpasupplicant vim lrzsz net-tools ntpdate memtester
  9. echo "export LC_ALL="zh_CN.UTF-8""
  10. echo "en_US.UTF-8 UTF-8" > etc/locale.gen
  11. echo "zh_CN.UTF-8 UTF-8" >> etc/locale.gen
  12. exit
复制代码
  1. #完整配置过程

  2. andy@andy:/work3/test/a20/rootfs$ sudo chroot . passwd
  3. qemu: Unsupported syscall: 403
  4. New password:
  5. Retype new password:
  6. qemu: Unsupported syscall: 384
  7. qemu: Unsupported syscall: 384
  8. qemu: Unsupported syscall: 384
  9. passwd: password updated successfully
  10. andy@andy:/work3/test/a20/rootfs$ sudo chroot .
  11. qemu: Unsupported syscall: 403
  12. root@andy:/# echo "Cubieboard2" > etc/hostname && cat etc/hostname
  13. Cubieboard2
  14. root@andy:/# echo "127.0.0.1 Cubieboard2" >> etc/hosts && cat etc/hosts
  15. 127.0.0.1        localhost
  16. ::1                localhost ip6-localhost ip6-loopback
  17. ff02::1                ip6-allnodes
  18. ff02::2                ip6-allrouters

  19. 127.0.0.1 Cubieboard2
  20. root@andy:/#
  21. root@andy:/#
  22. root@andy:/# echo T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 >> etc/inittab && cat etc/inittab
  23. T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100
  24. root@andy:/# apt-get update
  25. qemu: Unsupported syscall: 403
  26. qemu: Unsupported syscall: 384
  27. qemu: Unsupported syscall: 384
  28. 0% [Working]qemu: Unsupported syscall: 403
  29. Hit:1 http://httpredir.debian.org/debian bullseye InRelease
  30. 0% [Working]qemu: Unsupported syscall: 403
  31. Get:2 http://httpredir.debian.org/debian bullseye/main Translation-en [6235 kB]
  32. 95% [2 Translation-en store 0 B]                                                                                               62.8 kB/s 0sqemu: Unsupported syscall: 403
  33. Fetched 6235 kB in 1min 17s (81.5 kB/s)                                                                                                   
  34. Reading package lists... Done
  35. root@andy:/# apt-get upgrade
  36. qemu: Unsupported syscall: 403
  37. Reading package lists... Done
  38. Building dependency tree... Done
  39. Calculating upgrade... Done
  40. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  41. root@andy:/# apt-get install openssh-server locales wireless-tools wpasupplicant vim lrzsz net-tools ntpdate memtester
  42. qemu: Unsupported syscall: 403
  43. Reading package lists... Done
  44. Building dependency tree... Done
  45. The following additional packages will be installed:
  46.   dbus libc-l10n libcbor0 libdbus-1-3 libexpat1 libfido2-1 libgpm2 libiw30 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libpam-systemd
  47.   libpcsclite1 libwrap0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 ncurses-term openssh-client openssh-sftp-server
  48.   runit-helper ucf vim-runtime xauth
  49. Suggested packages:
  50.   default-dbus-session-bus | dbus-session-bus gpm pcscd minicom keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw ctags vim-doc
  51.   vim-scripts wpagui libengine-pkcs11-openssl
  52. qemu: Unsupported syscall: 384
  53. The following NEW packages will be installed:
  54.   dbus libc-l10n libcbor0 libdbus-1-3 libexpat1 libfido2-1 libgpm2 libiw30 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libpam-systemd
  55.   libpcsclite1 libwrap0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 locales lrzsz memtester ncurses-term net-tools
  56.   ntpdate openssh-client openssh-server openssh-sftp-server runit-helper ucf vim vim-runtime wireless-tools wpasupplicant xauth
  57. 0 upgraded, 37 newly installed, 0 to remove and 0 not upgraded.
  58. Need to get 18.5 MB of archives.
  59. After this operation, 75.4 MB of additional disk space will be used.
  60. Do you want to continue? [Y/n] y
  61. qemu: Unsupported syscall: 384
  62. 0% [Working]qemu: Unsupported syscall: 403
  63. Get:1 http://httpredir.debian.org/debian bullseye/main armhf libdbus-1-3 armhf 1.12.28-0+deb11u1 [200 kB]
  64. Get:2 http://httpredir.debian.org/debian bullseye/main armhf libexpat1 armhf 2.2.10-2+deb11u5 [78.4 kB]
  65. Get:3 http://httpredir.debian.org/debian bullseye/main armhf dbus armhf 1.12.28-0+deb11u1 [227 kB]
  66. Get:4 http://httpredir.debian.org/debian bullseye/main armhf libc-l10n all 2.31-13+deb11u11 [864 kB]
  67. Get:5 http://httpredir.debian.org/debian bullseye/main armhf libpam-systemd armhf 247.3-7+deb11u5 [263 kB]
  68. Get:6 http://httpredir.debian.org/debian bullseye/main armhf locales all 2.31-13+deb11u11 [4087 kB]
  69. Get:7 http://httpredir.debian.org/debian bullseye/main armhf ncurses-term all 6.2+20201114-2+deb11u2 [505 kB]
  70. Get:8 http://httpredir.debian.org/debian bullseye/main armhf libcbor0 armhf 0.5.0+dfsg-2 [19.6 kB]
  71. Get:9 http://httpredir.debian.org/debian bullseye/main armhf libfido2-1 armhf 1.6.0-2 [48.0 kB]
  72. Get:10 http://httpredir.debian.org/debian bullseye/main armhf openssh-client armhf 1:8.4p1-5+deb11u3 [845 kB]
  73. Get:11 http://httpredir.debian.org/debian bullseye/main armhf ucf all 3.0043 [74.0 kB]
  74. Get:12 http://httpredir.debian.org/debian bullseye/main armhf libgpm2 armhf 1.20.7-8 [34.8 kB]
  75. Get:13 http://httpredir.debian.org/debian bullseye/main armhf libiw30 armhf 30~pre9-13.1 [19.2 kB]
  76. Get:14 http://httpredir.debian.org/debian bullseye/main armhf libnl-3-200 armhf 3.4.0-1+b1 [55.5 kB]
  77. Get:15 http://httpredir.debian.org/debian bullseye/main armhf libnl-genl-3-200 armhf 3.4.0-1+b1 [19.4 kB]                                 
  78. Get:16 http://httpredir.debian.org/debian bullseye/main armhf libnl-route-3-200 armhf 3.4.0-1+b1 [136 kB]                                 
  79. Get:17 http://httpredir.debian.org/debian bullseye/main armhf libpcsclite1 armhf 1.9.1-1 [57.2 kB]                                         
  80. Get:18 http://httpredir.debian.org/debian bullseye/main armhf libwrap0 armhf 7.6.q-31 [56.5 kB]                                            
  81. Get:19 http://httpredir.debian.org/debian bullseye/main armhf libxau6 armhf 1:1.0.9-1 [19.0 kB]                                            
  82. Get:20 http://httpredir.debian.org/debian bullseye/main armhf libxdmcp6 armhf 1:1.1.2-3 [24.9 kB]                                          
  83. Get:21 http://httpredir.debian.org/debian bullseye/main armhf libxcb1 armhf 1.14-3 [136 kB]                                                
  84. Get:22 http://httpredir.debian.org/debian bullseye/main armhf libx11-data all 2:1.7.2-1+deb11u2 [311 kB]                                   
  85. Get:23 http://httpredir.debian.org/debian bullseye/main armhf libx11-6 armhf 2:1.7.2-1+deb11u2 [713 kB]                                    
  86. Get:24 http://httpredir.debian.org/debian bullseye/main armhf libxext6 armhf 2:1.3.3-1.1 [47.8 kB]                                         
  87. Get:25 http://httpredir.debian.org/debian bullseye/main armhf libxmuu1 armhf 2:1.1.2-2+b3 [23.3 kB]                                       
  88. Get:26 http://httpredir.debian.org/debian bullseye/main armhf lrzsz armhf 0.12.21-10 [85.0 kB]                                             
  89. Get:27 http://httpredir.debian.org/debian bullseye/main armhf memtester armhf 4.5.0-1 [19.0 kB]                                            
  90. Get:28 http://httpredir.debian.org/debian bullseye/main armhf net-tools armhf 1.60+git20181103.0eebece-1+deb11u1 [236 kB]                  
  91. Get:29 http://httpredir.debian.org/debian bullseye/main armhf ntpdate armhf 1:4.2.8p15+dfsg-1 [152 kB]                                    
  92. Get:30 http://httpredir.debian.org/debian bullseye/main armhf openssh-sftp-server armhf 1:8.4p1-5+deb11u3 [45.8 kB]                        
  93. Get:31 http://httpredir.debian.org/debian bullseye/main armhf runit-helper all 2.10.3 [7808 B]                                             
  94. Get:32 http://httpredir.debian.org/debian bullseye/main armhf openssh-server armhf 1:8.4p1-5+deb11u3 [349 kB]                              
  95. Get:33 http://httpredir.debian.org/debian bullseye/main armhf vim-runtime all 2:8.2.2434-3+deb11u1 [6226 kB]                              
  96. Get:34 http://httpredir.debian.org/debian bullseye/main armhf vim armhf 2:8.2.2434-3+deb11u1 [1309 kB]                                    
  97. Get:35 http://httpredir.debian.org/debian bullseye/main armhf wireless-tools armhf 30~pre9-13.1 [109 kB]                                   
  98. Get:36 http://httpredir.debian.org/debian bullseye/main armhf wpasupplicant armhf 2:2.9.0-21+deb11u2 [1107 kB]                             
  99. Get:37 http://httpredir.debian.org/debian bullseye/main armhf xauth armhf 1:1.1-1 [37.7 kB]                                                
  100. Fetched 18.5 MB in 19s (987 kB/s)                                                                                                         
  101. perl: warning: Setting locale failed.
  102. perl: warning: Please check that your locale settings:
  103.         LANGUAGE = "en_US",
  104.         LC_ALL = (unset),
  105.         LC_PAPER = "zh_CN.UTF-8",
  106.         LC_NUMERIC = "zh_CN.UTF-8",
  107.         LC_IDENTIFICATION = "zh_CN.UTF-8",
  108.         LC_MEASUREMENT = "zh_CN.UTF-8",
  109.         LC_NAME = "zh_CN.UTF-8",
  110.         LC_TELEPHONE = "zh_CN.UTF-8",
  111.         LC_ADDRESS = "zh_CN.UTF-8",
  112.         LC_MONETARY = "zh_CN.UTF-8",
  113.         LC_TIME = "zh_CN.UTF-8",
  114.         LANG = "en_US.UTF-8"
  115.     are supported and installed on your system.
  116. perl: warning: Falling back to the standard locale ("C").
  117. qemu: Unsupported syscall: 403
  118. /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
  119. /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  120. /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
  121. qemu: Unsupported syscall: 403
  122. Extracting templates from packages: 81%qemu: Unsupported syscall: 403
  123. Extracting templates from packages: 100%
  124. Preconfiguring packages ...
  125. qemu: Unsupported syscall: 403
  126. E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
  127. qemu: Unsupported syscall: 403
  128. qemu: Unsupported syscall: 403
  129. qemu: Unsupported syscall: 412
  130. qemu: Unsupported syscall: 412
  131. qemu: Unsupported syscall: 412
  132. qemu: Unsupported syscall: 412
  133. qemu: Unsupported syscall: 412
  134. qemu: Unsupported syscall: 412
  135. Selecting previously unselected package libdbus-1-3:armhf.
  136. (Reading database ... 9215 files and directories currently installed.)
  137. Preparing to unpack .../00-libdbus-1-3_1.12.28-0+deb11u1_armhf.deb ...
  138. Unpacking libdbus-1-3:armhf (1.12.28-0+deb11u1) ...
  139. qemu: Unsupported syscall: 403
  140. qemu: Unsupported syscall: 412
  141. qemu: Unsupported syscall: 412
  142. qemu: Unsupported syscall: 412
  143. qemu: Unsupported syscall: 412
  144. qemu: Unsupported syscall: 412
  145. qemu: Unsupported syscall: 412
  146. Selecting previously unselected package libexpat1:armhf.
  147. Preparing to unpack .../01-libexpat1_2.2.10-2+deb11u5_armhf.deb ...
  148. Unpacking libexpat1:armhf (2.2.10-2+deb11u5) ...
  149. qemu: Unsupported syscall: 403
  150. qemu: Unsupported syscall: 412
  151. qemu: Unsupported syscall: 412
  152. qemu: Unsupported syscall: 412
  153. qemu: Unsupported syscall: 412
  154. qemu: Unsupported syscall: 412
  155. qemu: Unsupported syscall: 412
  156. qemu: Unsupported syscall: 412
  157. qemu: Unsupported syscall: 412
  158. qemu: Unsupported syscall: 412
  159. Selecting previously unselected package dbus.
  160. Preparing to unpack .../02-dbus_1.12.28-0+deb11u1_armhf.deb ...
  161. Unpacking dbus (1.12.28-0+deb11u1) ...
  162. qemu: Unsupported syscall: 403
  163. qemu: Unsupported syscall: 412
  164. qemu: Unsupported syscall: 412
  165. qemu: Unsupported syscall: 412
  166. Selecting previously unselected package libc-l10n.
  167. Preparing to unpack .../03-libc-l10n_2.31-13+deb11u11_all.deb ...
  168. Unpacking libc-l10n (2.31-13+deb11u11) ...
  169. qemu: Unsupported syscall: 403
  170. qemu: Unsupported syscall: 412
  171. qemu: Unsupported syscall: 412
  172. qemu: Unsupported syscall: 412
  173. qemu: Unsupported syscall: 412
  174. qemu: Unsupported syscall: 412
  175. Selecting previously unselected package libpam-systemd:armhf.
  176. Preparing to unpack .../04-libpam-systemd_247.3-7+deb11u5_armhf.deb ...
  177. Unpacking libpam-systemd:armhf (247.3-7+deb11u5) ...
  178. qemu: Unsupported syscall: 403
  179. qemu: Unsupported syscall: 412
  180. qemu: Unsupported syscall: 412
  181. qemu: Unsupported syscall: 412
  182. qemu: Unsupported syscall: 412
  183. qemu: Unsupported syscall: 412
  184. qemu: Unsupported syscall: 412
  185. qemu: Unsupported syscall: 412
  186. qemu: Unsupported syscall: 412
  187. qemu: Unsupported syscall: 412
  188. Selecting previously unselected package locales.
  189. Preparing to unpack .../05-locales_2.31-13+deb11u11_all.deb ...
  190. Unpacking locales (2.31-13+deb11u11) ...
  191. qemu: Unsupported syscall: 403
  192. qemu: Unsupported syscall: 412
  193. qemu: Unsupported syscall: 412
  194. qemu: Unsupported syscall: 412
  195. Selecting previously unselected package ncurses-term.
  196. Preparing to unpack .../06-ncurses-term_6.2+20201114-2+deb11u2_all.deb ...
  197. Unpacking ncurses-term (6.2+20201114-2+deb11u2) ...
  198. qemu: Unsupported syscall: 403
  199. qemu: Unsupported syscall: 412
  200. qemu: Unsupported syscall: 412
  201. qemu: Unsupported syscall: 412
  202. qemu: Unsupported syscall: 412
  203. qemu: Unsupported syscall: 412
  204. qemu: Unsupported syscall: 412
  205. Selecting previously unselected package libcbor0:armhf.
  206. Preparing to unpack .../07-libcbor0_0.5.0+dfsg-2_armhf.deb ...
  207. Unpacking libcbor0:armhf (0.5.0+dfsg-2) ...
  208. qemu: Unsupported syscall: 403
  209. qemu: Unsupported syscall: 412
  210. qemu: Unsupported syscall: 412
  211. qemu: Unsupported syscall: 412
  212. qemu: Unsupported syscall: 412
  213. qemu: Unsupported syscall: 412
  214. qemu: Unsupported syscall: 412
  215. Selecting previously unselected package libfido2-1:armhf.
  216. Preparing to unpack .../08-libfido2-1_1.6.0-2_armhf.deb ...
  217. Unpacking libfido2-1:armhf (1.6.0-2) ...
  218. qemu: Unsupported syscall: 403
  219. qemu: Unsupported syscall: 412
  220. qemu: Unsupported syscall: 412
  221. qemu: Unsupported syscall: 412
  222. qemu: Unsupported syscall: 412
  223. qemu: Unsupported syscall: 412
  224. qemu: Unsupported syscall: 412
  225. qemu: Unsupported syscall: 412
  226. qemu: Unsupported syscall: 412
  227. Selecting previously unselected package openssh-client.
  228. Preparing to unpack .../09-openssh-client_1%3a8.4p1-5+deb11u3_armhf.deb ...
  229. Unpacking openssh-client (1:8.4p1-5+deb11u3) ...
  230. qemu: Unsupported syscall: 403
  231. qemu: Unsupported syscall: 412
  232. qemu: Unsupported syscall: 412
  233. qemu: Unsupported syscall: 412
  234. qemu: Unsupported syscall: 412
  235. qemu: Unsupported syscall: 412
  236. qemu: Unsupported syscall: 412
  237. qemu: Unsupported syscall: 412
  238. qemu: Unsupported syscall: 412
  239. Selecting previously unselected package ucf.
  240. Preparing to unpack .../10-ucf_3.0043_all.deb ...
  241. Moving old data out of the way
  242. Unpacking ucf (3.0043) ...
  243. qemu: Unsupported syscall: 403
  244. qemu: Unsupported syscall: 412
  245. qemu: Unsupported syscall: 412
  246. qemu: Unsupported syscall: 412
  247. qemu: Unsupported syscall: 412
  248. qemu: Unsupported syscall: 412
  249. qemu: Unsupported syscall: 412
  250. Selecting previously unselected package libgpm2:armhf.
  251. Preparing to unpack .../11-libgpm2_1.20.7-8_armhf.deb ...
  252. Unpacking libgpm2:armhf (1.20.7-8) ...
  253. qemu: Unsupported syscall: 403
  254. qemu: Unsupported syscall: 412
  255. qemu: Unsupported syscall: 412
  256. qemu: Unsupported syscall: 412
  257. qemu: Unsupported syscall: 412
  258. qemu: Unsupported syscall: 412
  259. Selecting previously unselected package libiw30:armhf.
  260. Preparing to unpack .../12-libiw30_30~pre9-13.1_armhf.deb ...
  261. Unpacking libiw30:armhf (30~pre9-13.1) ...
  262. qemu: Unsupported syscall: 403
  263. qemu: Unsupported syscall: 412
  264. qemu: Unsupported syscall: 412
  265. qemu: Unsupported syscall: 412
  266. qemu: Unsupported syscall: 412
  267. qemu: Unsupported syscall: 412
  268. qemu: Unsupported syscall: 412
  269. qemu: Unsupported syscall: 412
  270. Selecting previously unselected package libnl-3-200:armhf.
  271. Preparing to unpack .../13-libnl-3-200_3.4.0-1+b1_armhf.deb ...
  272. Unpacking libnl-3-200:armhf (3.4.0-1+b1) ...
  273. qemu: Unsupported syscall: 403
  274. qemu: Unsupported syscall: 412
  275. qemu: Unsupported syscall: 412
  276. qemu: Unsupported syscall: 412
  277. qemu: Unsupported syscall: 412
  278. qemu: Unsupported syscall: 412
  279. qemu: Unsupported syscall: 412
  280. Selecting previously unselected package libnl-genl-3-200:armhf.
  281. Preparing to unpack .../14-libnl-genl-3-200_3.4.0-1+b1_armhf.deb ...
  282. Unpacking libnl-genl-3-200:armhf (3.4.0-1+b1) ...
  283. qemu: Unsupported syscall: 403
  284. qemu: Unsupported syscall: 412
  285. qemu: Unsupported syscall: 412
  286. qemu: Unsupported syscall: 412
  287. qemu: Unsupported syscall: 412
  288. qemu: Unsupported syscall: 412
  289. qemu: Unsupported syscall: 412
  290. Selecting previously unselected package libnl-route-3-200:armhf.
  291. Preparing to unpack .../15-libnl-route-3-200_3.4.0-1+b1_armhf.deb ...
  292. Unpacking libnl-route-3-200:armhf (3.4.0-1+b1) ...
  293. qemu: Unsupported syscall: 403
  294. qemu: Unsupported syscall: 412
  295. qemu: Unsupported syscall: 412
  296. qemu: Unsupported syscall: 412
  297. qemu: Unsupported syscall: 412
  298. qemu: Unsupported syscall: 412
  299. qemu: Unsupported syscall: 412
  300. Selecting previously unselected package libpcsclite1:armhf.
  301. Preparing to unpack .../16-libpcsclite1_1.9.1-1_armhf.deb ...
  302. Unpacking libpcsclite1:armhf (1.9.1-1) ...
  303. qemu: Unsupported syscall: 403
  304. qemu: Unsupported syscall: 412
  305. qemu: Unsupported syscall: 412
  306. qemu: Unsupported syscall: 412
  307. qemu: Unsupported syscall: 412
  308. qemu: Unsupported syscall: 412
  309. qemu: Unsupported syscall: 412
  310. qemu: Unsupported syscall: 412
  311. qemu: Unsupported syscall: 412
  312. Selecting previously unselected package libwrap0:armhf.
  313. Preparing to unpack .../17-libwrap0_7.6.q-31_armhf.deb ...
  314. Unpacking libwrap0:armhf (7.6.q-31) ...
  315. qemu: Unsupported syscall: 403
  316. qemu: Unsupported syscall: 412
  317. qemu: Unsupported syscall: 412
  318. qemu: Unsupported syscall: 412
  319. qemu: Unsupported syscall: 412
  320. qemu: Unsupported syscall: 412
  321. Selecting previously unselected package libxau6:armhf.
  322. Preparing to unpack .../18-libxau6_1%3a1.0.9-1_armhf.deb ...
  323. Unpacking libxau6:armhf (1:1.0.9-1) ...
  324. qemu: Unsupported syscall: 403
  325. qemu: Unsupported syscall: 412
  326. qemu: Unsupported syscall: 412
  327. qemu: Unsupported syscall: 412
  328. qemu: Unsupported syscall: 412
  329. qemu: Unsupported syscall: 412
  330. Selecting previously unselected package libxdmcp6:armhf.
  331. Preparing to unpack .../19-libxdmcp6_1%3a1.1.2-3_armhf.deb ...
  332. Unpacking libxdmcp6:armhf (1:1.1.2-3) ...
  333. qemu: Unsupported syscall: 403
  334. qemu: Unsupported syscall: 412
  335. qemu: Unsupported syscall: 412
  336. qemu: Unsupported syscall: 412
  337. qemu: Unsupported syscall: 412
  338. qemu: Unsupported syscall: 412
  339. qemu: Unsupported syscall: 412
  340. Selecting previously unselected package libxcb1:armhf.
  341. Preparing to unpack .../20-libxcb1_1.14-3_armhf.deb ...
  342. Unpacking libxcb1:armhf (1.14-3) ...
  343. qemu: Unsupported syscall: 403
  344. qemu: Unsupported syscall: 412
  345. qemu: Unsupported syscall: 412
  346. qemu: Unsupported syscall: 412
  347. Selecting previously unselected package libx11-data.
  348. Preparing to unpack .../21-libx11-data_2%3a1.7.2-1+deb11u2_all.deb ...
  349. Unpacking libx11-data (2:1.7.2-1+deb11u2) ...
  350. qemu: Unsupported syscall: 403
  351. qemu: Unsupported syscall: 412
  352. qemu: Unsupported syscall: 412
  353. qemu: Unsupported syscall: 412
  354. qemu: Unsupported syscall: 412
  355. qemu: Unsupported syscall: 412
  356. qemu: Unsupported syscall: 412
  357. Selecting previously unselected package libx11-6:armhf.
  358. Preparing to unpack .../22-libx11-6_2%3a1.7.2-1+deb11u2_armhf.deb ...
  359. Unpacking libx11-6:armhf (2:1.7.2-1+deb11u2) ...
  360. qemu: Unsupported syscall: 403
  361. qemu: Unsupported syscall: 412
  362. qemu: Unsupported syscall: 412
  363. qemu: Unsupported syscall: 412
  364. qemu: Unsupported syscall: 412
  365. qemu: Unsupported syscall: 412
  366. qemu: Unsupported syscall: 412
  367. Selecting previously unselected package libxext6:armhf.
  368. Preparing to unpack .../23-libxext6_2%3a1.3.3-1.1_armhf.deb ...
  369. Unpacking libxext6:armhf (2:1.3.3-1.1) ...
  370. qemu: Unsupported syscall: 403
  371. qemu: Unsupported syscall: 412
  372. qemu: Unsupported syscall: 412
  373. qemu: Unsupported syscall: 412
  374. qemu: Unsupported syscall: 412
  375. qemu: Unsupported syscall: 412
  376. Selecting previously unselected package libxmuu1:armhf.
  377. Preparing to unpack .../24-libxmuu1_2%3a1.1.2-2+b3_armhf.deb ...
  378. Unpacking libxmuu1:armhf (2:1.1.2-2+b3) ...
  379. qemu: Unsupported syscall: 403
  380. qemu: Unsupported syscall: 412
  381. qemu: Unsupported syscall: 412
  382. qemu: Unsupported syscall: 412
  383. Selecting previously unselected package lrzsz.
  384. Preparing to unpack .../25-lrzsz_0.12.21-10_armhf.deb ...
  385. Unpacking lrzsz (0.12.21-10) ...
  386. qemu: Unsupported syscall: 403
  387. qemu: Unsupported syscall: 412
  388. qemu: Unsupported syscall: 412
  389. qemu: Unsupported syscall: 412
  390. Selecting previously unselected package memtester.
  391. Preparing to unpack .../26-memtester_4.5.0-1_armhf.deb ...
  392. Unpacking memtester (4.5.0-1) ...
  393. qemu: Unsupported syscall: 403
  394. qemu: Unsupported syscall: 412
  395. qemu: Unsupported syscall: 412
  396. qemu: Unsupported syscall: 412
  397. Selecting previously unselected package net-tools.
  398. Preparing to unpack .../27-net-tools_1.60+git20181103.0eebece-1+deb11u1_armhf.deb ...
  399. Unpacking net-tools (1.60+git20181103.0eebece-1+deb11u1) ...
  400. qemu: Unsupported syscall: 403
  401. qemu: Unsupported syscall: 412
  402. qemu: Unsupported syscall: 412
  403. qemu: Unsupported syscall: 412
  404. qemu: Unsupported syscall: 412
  405. qemu: Unsupported syscall: 412
  406. qemu: Unsupported syscall: 412
  407. qemu: Unsupported syscall: 412
  408. qemu: Unsupported syscall: 412
  409. Selecting previously unselected package ntpdate.
  410. Preparing to unpack .../28-ntpdate_1%3a4.2.8p15+dfsg-1_armhf.deb ...
  411. Unpacking ntpdate (1:4.2.8p15+dfsg-1) ...
  412. qemu: Unsupported syscall: 403
  413. qemu: Unsupported syscall: 412
  414. qemu: Unsupported syscall: 412
  415. qemu: Unsupported syscall: 412
  416. Selecting previously unselected package openssh-sftp-server.
  417. Preparing to unpack .../29-openssh-sftp-server_1%3a8.4p1-5+deb11u3_armhf.deb ...
  418. Unpacking openssh-sftp-server (1:8.4p1-5+deb11u3) ...
  419. qemu: Unsupported syscall: 403
  420. qemu: Unsupported syscall: 412
  421. qemu: Unsupported syscall: 412
  422. qemu: Unsupported syscall: 412
  423. Selecting previously unselected package runit-helper.
  424. Preparing to unpack .../30-runit-helper_2.10.3_all.deb ...
  425. Unpacking runit-helper (2.10.3) ...
  426. qemu: Unsupported syscall: 403
  427. qemu: Unsupported syscall: 412
  428. qemu: Unsupported syscall: 412
  429. qemu: Unsupported syscall: 412
  430. qemu: Unsupported syscall: 412
  431. qemu: Unsupported syscall: 412
  432. qemu: Unsupported syscall: 412
  433. qemu: Unsupported syscall: 412
  434. qemu: Unsupported syscall: 412
  435. qemu: Unsupported syscall: 412
  436. qemu: Unsupported syscall: 412
  437. Selecting previously unselected package openssh-server.
  438. Preparing to unpack .../31-openssh-server_1%3a8.4p1-5+deb11u3_armhf.deb ...
  439. Unpacking openssh-server (1:8.4p1-5+deb11u3) ...
  440. qemu: Unsupported syscall: 403
  441. qemu: Unsupported syscall: 412
  442. qemu: Unsupported syscall: 412
  443. qemu: Unsupported syscall: 412
  444. qemu: Unsupported syscall: 412
  445. qemu: Unsupported syscall: 412
  446. qemu: Unsupported syscall: 412
  447. Selecting previously unselected package vim-runtime.
  448. Preparing to unpack .../32-vim-runtime_2%3a8.2.2434-3+deb11u1_all.deb ...
  449. Adding \'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime\'
  450. Adding \'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime\'
  451. Unpacking vim-runtime (2:8.2.2434-3+deb11u1) ...
  452. qemu: Unsupported syscall: 403
  453. qemu: Unsupported syscall: 412
  454. qemu: Unsupported syscall: 412
  455. qemu: Unsupported syscall: 412
  456. qemu: Unsupported syscall: 412
  457. qemu: Unsupported syscall: 412
  458. qemu: Unsupported syscall: 412
  459. qemu: Unsupported syscall: 412
  460. Selecting previously unselected package vim.
  461. Preparing to unpack .../33-vim_2%3a8.2.2434-3+deb11u1_armhf.deb ...
  462. Unpacking vim (2:8.2.2434-3+deb11u1) ...
  463. qemu: Unsupported syscall: 403
  464. qemu: Unsupported syscall: 412
  465. qemu: Unsupported syscall: 412
  466. qemu: Unsupported syscall: 412
  467. qemu: Unsupported syscall: 412
  468. qemu: Unsupported syscall: 412
  469. qemu: Unsupported syscall: 412
  470. Selecting previously unselected package wireless-tools.
  471. Preparing to unpack .../34-wireless-tools_30~pre9-13.1_armhf.deb ...
  472. Unpacking wireless-tools (30~pre9-13.1) ...
  473. qemu: Unsupported syscall: 403
  474. qemu: Unsupported syscall: 412
  475. qemu: Unsupported syscall: 412
  476. qemu: Unsupported syscall: 412
  477. qemu: Unsupported syscall: 412
  478. qemu: Unsupported syscall: 412
  479. qemu: Unsupported syscall: 412
  480. qemu: Unsupported syscall: 412
  481. Selecting previously unselected package wpasupplicant.
  482. Preparing to unpack .../35-wpasupplicant_2%3a2.9.0-21+deb11u2_armhf.deb ...
  483. Unpacking wpasupplicant (2:2.9.0-21+deb11u2) ...
  484. qemu: Unsupported syscall: 403
  485. qemu: Unsupported syscall: 412
  486. qemu: Unsupported syscall: 412
  487. qemu: Unsupported syscall: 412
  488. Selecting previously unselected package xauth.
  489. Preparing to unpack .../36-xauth_1%3a1.1-1_armhf.deb ...
  490. Unpacking xauth (1:1.1-1) ...
  491. qemu: Unsupported syscall: 403
  492. Setting up libexpat1:armhf (2.2.10-2+deb11u5) ...
  493. Setting up runit-helper (2.10.3) ...
  494. Setting up libxau6:armhf (1:1.0.9-1) ...
  495. Setting up net-tools (1.60+git20181103.0eebece-1+deb11u1) ...
  496. Setting up libxdmcp6:armhf (1:1.1.2-3) ...
  497. Setting up libc-l10n (2.31-13+deb11u11) ...
  498. Setting up libxcb1:armhf (1.14-3) ...
  499. Setting up libgpm2:armhf (1.20.7-8) ...
  500. Setting up libcbor0:armhf (0.5.0+dfsg-2) ...
  501. Setting up locales (2.31-13+deb11u11) ...
  502. qemu: Unsupported syscall: 403
  503. /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
  504. qemu: Unsupported syscall: 403
  505. qemu: Unsupported syscall: 403
  506. qemu: Unsupported syscall: 403
  507. Generating locales (this might take a while)...
  508. Generation complete.
  509. qemu: Unsupported syscall: 403
  510. Setting up ntpdate (1:4.2.8p15+dfsg-1) ...
  511. Setting up libwrap0:armhf (7.6.q-31) ...
  512. Setting up libx11-data (2:1.7.2-1+deb11u2) ...
  513. Setting up libdbus-1-3:armhf (1.12.28-0+deb11u1) ...
  514. Setting up dbus (1.12.28-0+deb11u1) ...
  515. qemu: Unsupported syscall: 403
  516. qemu: Unsupported syscall: 403
  517. qemu: Unsupported syscall: 403
  518. qemu: Unsupported syscall: 403
  519. qemu: Unsupported syscall: 403
  520. qemu: Unsupported syscall: 403
  521. invoke-rc.d: could not determine current runlevel
  522. Setting up libpcsclite1:armhf (1.9.1-1) ...
  523. Setting up ucf (3.0043) ...
  524. qemu: Unsupported syscall: 412
  525. qemu: Unsupported syscall: 412
  526. qemu: Unsupported syscall: 403
  527. /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
  528. /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  529. /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
  530. qemu: Unsupported syscall: 412
  531. qemu: Unsupported syscall: 412
  532. Setting up memtester (4.5.0-1) ...
  533. Setting up libnl-3-200:armhf (3.4.0-1+b1) ...
  534. Setting up libpam-systemd:armhf (247.3-7+deb11u5) ...
  535. qemu: Unsupported syscall: 403
  536. qemu: Unsupported syscall: 403
  537. /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
  538. /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  539. /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
  540. qemu: Unsupported syscall: 403
  541. Setting up libx11-6:armhf (2:1.7.2-1+deb11u2) ...
  542. Setting up vim-runtime (2:8.2.2434-3+deb11u1) ...
  543. qemu: Unsupported syscall: 403
  544. Setting up libfido2-1:armhf (1.6.0-2) ...
  545. Setting up lrzsz (0.12.21-10) ...
  546. Setting up libxmuu1:armhf (2:1.1.2-2+b3) ...
  547. Setting up libiw30:armhf (30~pre9-13.1) ...
  548. Setting up ncurses-term (6.2+20201114-2+deb11u2) ...
  549. Setting up vim (2:8.2.2434-3+deb11u1) ...
  550. qemu: Unsupported syscall: 403
  551. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
  552. qemu: Unsupported syscall: 403
  553. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
  554. qemu: Unsupported syscall: 403
  555. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
  556. qemu: Unsupported syscall: 403
  557. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
  558. qemu: Unsupported syscall: 403
  559. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
  560. qemu: Unsupported syscall: 403
  561. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
  562. qemu: Unsupported syscall: 403
  563. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
  564. qemu: Unsupported syscall: 403
  565. Setting up openssh-client (1:8.4p1-5+deb11u3) ...
  566. qemu: Unsupported syscall: 403
  567. qemu: Unsupported syscall: 403
  568. qemu: Unsupported syscall: 403
  569. qemu: Unsupported syscall: 403
  570. qemu: Unsupported syscall: 403
  571. Setting up wireless-tools (30~pre9-13.1) ...
  572. Setting up libxext6:armhf (2:1.3.3-1.1) ...
  573. Setting up libnl-route-3-200:armhf (3.4.0-1+b1) ...
  574. Setting up xauth (1:1.1-1) ...
  575. Setting up libnl-genl-3-200:armhf (3.4.0-1+b1) ...
  576. Setting up openssh-sftp-server (1:8.4p1-5+deb11u3) ...
  577. Setting up openssh-server (1:8.4p1-5+deb11u3) ...
  578. qemu: Unsupported syscall: 403
  579. /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
  580. /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  581. /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
  582. qemu: Unsupported syscall: 403
  583. qemu: Unsupported syscall: 412
  584. qemu: Unsupported syscall: 403
  585. qemu: Unsupported syscall: 403
  586. qemu: Unsupported syscall: 403

  587. Creating config file /etc/ssh/sshd_config with new version
  588. qemu: Unsupported syscall: 412
  589. qemu: Unsupported syscall: 412
  590. qemu: Unsupported syscall: 382
  591. qemu: Unsupported syscall: 397
  592. qemu: Unsupported syscall: 412
  593. qemu: Unsupported syscall: 382
  594. qemu: Unsupported syscall: 403
  595. Creating SSH2 RSA key; this may take some time ...qemu: Unsupported syscall: 384
  596. qemu: Unsupported syscall: 384
  597. PRNG is not seeded
  598. dpkg: error processing package openssh-server (--configure):
  599. installed openssh-server package post-installation script subprocess returned error exit status 255
  600. Setting up wpasupplicant (2:2.9.0-21+deb11u2) ...
  601. qemu: Unsupported syscall: 403
  602. qemu: Unsupported syscall: 403
  603. qemu: Unsupported syscall: 403
  604. qemu: Unsupported syscall: 384
  605. Created symlink /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service → /lib/systemd/system/wpa_supplicant.service.
  606. Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant.service → /lib/systemd/system/wpa_supplicant.service.
  607. Processing triggers for libc-bin (2.31-13+deb11u11) ...
  608. Processing triggers for dbus (1.12.28-0+deb11u1) ...
  609. Errors were encountered while processing:
  610. openssh-server
  611. E: Sub-process /usr/bin/dpkg returned an error code (1)
  612. root@andy:/# memtester ^C
  613. root@andy:/# echo "export LC_ALL="zh_CN.UTF-8""
  614. export LC_ALL="zh_CN.UTF-8"
  615. root@andy:/# echo "en_US.UTF-8 UTF-8" > etc/locale.gen
  616. root@andy:/# echo "zh_CN.UTF-8 UTF-8" >> etc/locale.gen
  617. root@andy:/# locale-gen
  618. Generating locales (this might take a while)...
  619.   en_US.UTF-8...qemu: Unsupported syscall: 403
  620. done
  621.   zh_CN.UTF-8... done
  622. Generation complete.
  623. root@andy:/# exit
  624. exit
  625. andy@andy:/work3/test/a20/rootfs$
复制代码
  1. # 备份 rootfs

  2. andy@andy:/work3/test/a20/rootfs$ cd ../ && tar -czvf chroot-armhf-bullseye-`date +%Y%m%d_%H%M%S`.tar.gz chroot-armhf-bullseye/
  3. andy@andy:/work3/test/a20$ ll
  4. total 6634160
  5. drwxrwxr-x  5 andy andy       4096 10月 31 17:13 ./
  6. drwxrwxr-x  5 andy andy       4096 10月 25 10:05 ../
  7. -rw-r--r--  1 root root  134843391 10月 26 11:36 chroot-armhf_bullseye_cb2_20241026_113614.tar.gz
  8. andy@andy:/work3/test/a20$
  9. andy@andy:/work3/test/a20$
复制代码
    至此,根文件系统 chroot-armhf_bullseye_cb2_20241026_113614.tar.gz 已生成


获取 eMMC 所需文件 boot.scr
  • 这个文件有些参数需要根据 u-boot-sunxi-with-spl.bin 来修改,在此先行一步,将参数设置好,后续自行验证
  • 创建 boot.cmd 文件并编辑
  • 使用 mkimage 工具将 boot.cmd 转换为 boot.scr
  1. # boot.cmd 内容如下

  2. setenv bootargs console=ttyS0,115200 root=/dev/mmcblk1p2 rootwait panic=10
  3. load mmc 1:1 0x43000000 sun7i-a20-cubieboard2.dtb || load mmc 1:1 0x43000000 boot/sun7i-a20-cubieboard2.dtb
  4. load mmc 1:1 0x42000000 zImage || load mmc 0:1 0x42000000 boot/zImage
  5. bootz 0x42000000 - 0x43000000
复制代码
    注意root=/dev/mmcblk1p2mmc 1:1,这两处与卡启动不相同
  1. # 将 boot.cmd 转换为 boot.scr

  2. mkimage -C none -A arm -T script -d boot.cmd boot.scr
复制代码
     注意:0x420000000x43000000 这两个参数可以从 u-boot-sunxi-with-spl.bin 获取

     至此,boot.scr 已生成


来源: CB2-uboot2020+linux6-eMMC启动篇
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-22 14:03 , Processed in 0.027783 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部