Hi, I am trying to replace my custom rootfs with the one supplied by linaro. I am using the “lt-qcom-debian-images-arm64-installer-dragonboard-410c.sh” script to prepare the sd card. The following steps I am following to achieve this.
- Executed the script “lt-qcom-debian-images-arm64-installer-dragonboard-410c.sh”.
- Using dd command write the image “db410c_sd_install_debian.img” to sd card.
- Boot the dragonboard with sd card and install the image on board.
- I installed some custom application and some packages and libraries on the board.
- After installation. mount another sd card (sd card 2) or usb mass storage device. Use dd command to extract the contents of mmcblk0. I am calling this image as rootfs_custom.img. The size of this file is 7.8 G.
- When i tried to replace it with the (alip) rootfs.img provided by the linaro i got the following errors.
sudo sh lt-qcom-debian-images-arm64-installer-dragonboard-410c.sh
- trap cleanup_exit INT TERM EXIT
- VENDOR=linaro
- OS_fLAVOUR=jessie
- PLATfORM_NAME=qcom-snapdragon-arm64
- BUILD_NUMBER=144
- VERSION=20161006-144
- WORKSPACE=.
- pwd
- export PATH=/home/sahil/development/vvats/bootable_sd/skales:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- BL_BUILD_NUMBER=76
- du -sk os
- cut -f1
- size_os=7676988
- size_os=7677952
- size_os=7882752
- size_img=9750528
- sudo rm -f out/os.img
- sudo mkfs.fat -a -f32 -n OS -C out/os.img 7882752
mkfs.fat 3.0.26 (2014-03-07) - mkdir -p mnt
- sudo mount -o loop out/os.img mnt
- sudo cp -r os/debian os/flash os/mksdcard mnt/
+cp: error writing ‘mnt/debian/rootfs.img’: file too large
+cp: failed to extend ‘mnt/debian/rootfs.img’: file too large - cleanup_exit
- [ 1 = 0 ]
- cd .
- sudo git clean -fdxq
I need help to rectify this issue.
Thanks in advance