J1010 Boot From SD Card
Getting Started
We need to read these two articles before we start. Make sure the J1010 system is burned in correctly and that the sd card driver is installed properly.
Flashing System from J101 to SD Card
First, we need to clone the script include the tools we need.
git clone https://github.com/limengdu/bootFromUSB
Second , We need to make sure the sd card is in ext4 format, which can be seen visually in the "disk" tool, if it is not ext4 we need to format it and change it to ext4 format.
Click blue are and then click on green area to select "Format Partiton"
Click on green area to select "Internal disk for use with Linux systems only (Ext4)" Fill the name want you wannt in "Volume Name" in the yellow area.
So we can find the format of the sd card has been changed to ext4.
And then , go to the script directory , execute the following command like this
cd bootFromUSB
./copyRootToUSB.sh -p /dev/mmcblk1p1
Wait a while, only until it finishes automatically, if no error is reported, the burning is done
Boot Configuration
Once the driver has been successfully installed and configured,we can simply view it via the command like "lsblk" or view device in "/dev".
Change boot device
We are supposed to change the configuration in "/boot/extlinux/extlinux.conf".
Boot from sd card
After we boot from the emmc on the carrier board, we want to modify it to boot from the SD card. We need to make sure that the previous process, including the system burn to the sd card, and the sd card drivers are installed properly. Modify the parameters after root to the address of the device we are booting from. When we have completed our changes, reboot the system.
Before reboot Modify "/boot/extlinux/extlinux.conf" After reboot view "/media/seeed/{xxx-xxx}/boot/extlinux/extlinux.conf"
!!!Note
Our configuration file after booting the system from the sd card is "/media/seeed/{xxx-xxx}/boot/extlinux/extlinux.conf" and the configuration file after booting the system from the onboard emmc is in "/boot/extlinux/extlinux.conf" . They are the same files from which the device reads the configuration and chooses where to boot the system after power-up, and the relative paths change when the system has finished booting.
Boot from board emmc
We want to change back to booting from emmc after booting from an SD card or we need to change the SD card for some purpose. Then we need to change the device back to boot from emmc first. We should make the following changes.
Before reboot Modify "/media/seeed/{xxx-xxx}/boot/extlinux/extlinux.conf" After reboot view "/boot/extlinux/extlinux.conf"
Finally, we find it really works well.
Boot from emmc
Boot from sd card
Tech Support
Please do not hesitate to submit the issue into our forum.