Our team will have a customized tx2 module with only 4GB eMMC. So we must put almost everything including bootloader, kernel, rootfs and other APP all in external sdcard like nano which has no eMMC does. But when i use “sudo ./flash.sh jetson-tx2 mmcblk1p1”, it just update the extlinux.conf in eMMC(I think) to
LABEL sdcard
MENU LABEL sdcard SATA SSD
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} root=/dev/mmcblk1p1 rw rootwait rootfstype=ext4
, and nothing write to external sdcard. The generated bootloader/system.img size is only 31M. The flash time is about one minute. Then tx2 reboot again and again.
-rwxr-xr-x 1 root root 31M 8月 13 17:42 bootloader/system.img*
-rwxr-xr-x 1 root root 28G 8月 13 17:42 bootloader/system.img.raw*
I want to resuse image generated by:
sudo ./flash.sh --no-flash -S 28GiB jetson mmcblk0p1
and then flash it to sdcard by:
sudo ./flash.sh -r jetson mmcblk1p1
But this command still flash system.img to internal eMMC leaving sdcard nothing.
and the extlinux.conf is:
ISBU@jetson-0422818032206:/home$ cat /boot/extlinux/extlinux.conf
TIMEOUT 30
DEFAULT primary
MENU TITLE p2771-0000 eMMC boot options
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
Is there some way I can use flash.sh script to flash image directly to external sdcard? Can the flash.sh script only flash to internal eMMC?
The log is as below:
[sudo] password for garret:
###############################################################################
L4T BSP Information:
R28 (release), REVISION: 3.0, GCID: 14690851, BOARD: t186ref, EABI: aarch64,
DATE: Mon Mar 25 17:43:04 UTC 2019
###############################################################################
Target Board Information:
Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186,
OpMode: production, Boot Authentication: ,
###############################################################################
./tegraflash.py --chip 0x18 --applet “/home/garret/tx2_28_3/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin” --cmd
…
…
…
*** The target t186ref has been flashed successfully. ***
Make the target filesystem available to the device and reset the board to boot from external mmcblk1p1.