SPRAD09A December   2021  – July 2022 DRA821U

 

  1.   Abstract
  2.   Trademarks
  3. 1Hardware and Software Required Stuff
  4. 2DRA821U Boot Mode With Fast Boot Method
  5. 3Detailed Steps
    1. 3.1 Step1: Patch and Build/Copy the u-boot
    2. 3.2 Step2: Optimizations by Switching to xSPI Boot: Copy Bootloaders to xSPI
    3. 3.3 Step 3: Optimize the DTSI by Disabling Nodes not Mandatory for Linux Boot
    4. 3.4 Step 4: Create Bootable SD Card, Switch to TinyFS
    5. 3.5 Step 5: Switch to eMMC Filesystem
    6. 3.6 Step 6: Optimizations With Bootargs
    7. 3.7 Step 7: Hijack the init
  6. 4Debug Commands
    1. 4.1 SF Probe
    2. 4.2 mmcblk
    3. 4.3 How to Check Mounted Devices?
    4. 4.4 How to Check Your Partitions?
    5. 4.5 How to Restore Your Boot Setting?
  7. 5Fast Boot Result Review
  8. 6References
  9. 7Revision History

Step 4: Create Bootable SD Card, Switch to TinyFS

Boot switch setting:

No need to change the boot switches in this step:

Commands: (Do this on the ubuntu, not the EVM)

Open $PSDKLA/bin/mksdboot.sh (This is to switch the TinyFS)

Do the following change from:

root_fs="$sdkdir/filesystem/tisdk-default-image-j7200-evm.tar.xz"

to

root_fs="$sdkdir/filesystem/tisdk-tiny-image-j7200-evm.tar.xz"

Do this:

sudo dpkg-reconfigure dash (This is very important Step!)

sudo ./mksdboot.sh --device /dev/sdb --sdk /opt/ti-processor-sdk-linux-j7200-evm-08_00_00_05/

or

sudo ./mksdboot.sh --device /dev/sdc --sdk /opt/ti-processor-sdk-linux-j7200-evm-08_00_00_05/

Re insert the SD card onto ubuntu.

make linux

sudo make linux_install

Go to TargetNFS, find the lib + usr/lib + sbin , do those 3 copy actions, then "sync".

Do this:

sudo cp -r lib/* /media/root/rootfs/lib	(See the “root”, you need to change this according your ubuntu env).
sudo cp -r usr/lib/* /media/root/rootfs/usr/lib
cp sbin/mkfs.ext4 /media/root/rootfs/mnt/    (This is very important!!)
sync