Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamlining support for eMMC boot #72

Open
wants to merge 1 commit into
base: yocto_5
Choose a base branch
from

Conversation

UtsavAgarwalADI
Copy link
Contributor

Integrates patch required to compile a file system which can directly be flashed onto the eMMC after partitioning with fdisk

Build machine:

bitbake adsp-sc5xx-minimal-mmc

//go to deploy
sudo tar -xf adsp-sc5xx-minimal-mmc-adsp-sc598-som-ezkit.rootfs.tar.xz -C /romfs
sudo mv adsp-sc5xx-minimal-mmc-adsp-sc598-som-ezkit.rootfs.ext4 /romfs

Board:

//uboot
run nfsboot

//linux
root@adsp-sc598-som-ezkit:~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains 'ext4' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

Device does not contain a recognized partition table.
Created a new DOS (MBR) disklabel with disk identifier 0x646eb66e.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-15269887, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15269887, default 15269887):

Created a new partition 1 of type 'Linux' and of size 7.3 GiB.

Command (m for help): w
The partition table has been altered.[   90.621390]  mmcblk0: p1

Calling ioctl() to re-read partition table.
Syncing disks.

//this is for sc598 - block size might be different for different eMMCs, confirm that with mmc info inside uboot
root@adsp-sc598-som-ezkit:~# dd if=adsp-sc5xx-minimal-mmc-adsp-sc598-som-ezkit.rootfs.ext4 of=/dev/mmcblk0p1 bs=512
313176+0 records in
313176+0 records out

//reset
root@adsp-sc598-som-ezkit:~# reboot -f

//uboot
mmcboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant