0
Armin

Change the DTB file's selection directly into the eMMC installation

Recommended Posts

(edited)
1 hour ago, SteeMan said:

while running from the sd card, mount the /boot partition on the emmc and edit the uEnv.txt file on the emmc directly.

 

I suppose that witht the commande mount /boot is from SD Card and not from eMMC ?

 

So, I think I have found how to mount eMMC partition:

root@arm-64:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0 59.5G  0 disk
├─mmcblk1p1  179:1    0  512M  0 part /boot
└─mmcblk1p2  179:2    0 58.4G  0 part /
mmcblk2      179:32   0 29.1G  0 disk
├─mmcblk2p1  179:33   0  488M  0 part
└─mmcblk2p2  179:34   0   28G  0 part
mmcblk2boot0 179:64   0    4M  1 disk
mmcblk2boot1 179:96   0    4M  1 disk
zram0        254:0    0   50M  0 disk /var/log
zram1        254:1    0    1G  0 disk [SWAP]
root@arm-64:~# mount /dev/mmcblk2p2 /mnt
root@arm-64:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0 59.5G  0 disk
├─mmcblk1p1  179:1    0  512M  0 part /boot
└─mmcblk1p2  179:2    0 58.4G  0 part /
mmcblk2      179:32   0 29.1G  0 disk
├─mmcblk2p1  179:33   0  488M  0 part
└─mmcblk2p2  179:34   0   28G  0 part /mnt
mmcblk2boot0 179:64   0    4M  1 disk
mmcblk2boot1 179:96   0    4M  1 disk
zram0        254:0    0   50M  0 disk /var/log
zram1        254:1    0    1G  0 disk [SWAP]
root@arm-64:~# cd /mnt
root@arm-64:/mnt#

How can I copy meson-sm1-sei610-ethfix.dtb from SD Card to same folder on eMMC ?

 

Edited by Armin

Share this post


Link to post
Share on other sites
2 minutes ago, Armin said:

I suppose that witht the commande mount /boot is from SD Card and not from eMMC ?

 

So,

How can I copy meson-sm1-sei610-ethfix.dtb from SD Card to same folder on eMMC ?

 

Yes while running from sd card you should be able to do:

$ mount | grep mmc

/dev/mmcblk1p2 on / type ext4 (rw,noatime,errors=remount-ro,data=writeback)
/dev/mmcblk1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/mmcblk1p2 on /var/log.hdd type ext4 (rw,noatime,errors=remount-ro,data=writeback)

(If your device is standard you should see that your sc card is device /dev/mmcblk1 with two mounted partitions p1 = /boot and p2 = /)

$ ls /dev/mmcblk*

/dev/mmcblk1       /dev/mmcblk1boot1  /dev/mmcblk1p2
/dev/mmcblk1boot0  /dev/mmcblk1p1     /dev/mmcblk1rpmb

/dev/mmcblk2       /dev/mmcblk2boot1  /dev/mmcblk2p2
/dev/mmcblk2boot0  /dev/mmcblk2p1     /dev/mmcblk2rpmb

(Again if your device is standard you should see both mmcblk1 and mmcblk2 - with mmcblk2 being your emmc)

$ mkdir tmp

$ sudo mount /dev/mmcblk2p1 tmp

(mount the first partition of mmcblk2 to ./tmp - this will mount the emmc boot directory to tmp)

$ cd tmp

$ ls tmp

(you should see the contents of your emmc boot directory here, now you can edit the uEnv.txt file, copy to this directory any dtb you wish, etc)

$ umount /dev/mmcblk2p1

(un-mount the disk when you are done, shutdown, pull the sd card and reboot to emmc)

 

 

 

Share this post


Link to post
Share on other sites
(edited)
26 minutes ago, SteeMan said:

(you should see the contents of your emmc boot directory here, now you can edit the uEnv.txt file, copy to this directory any dtb you wish, etc)

$ umount /dev/mmcblk2p1

(un-mount the disk when you are done, shutdown, pull the sd card and reboot to emmc)

I can not access to dtb directory

Spoiler

root@arm-64:~/tmp# ls
 armbian_first_run.txt.template   dtb
 boot.bmp                         emmc_autoscript
 boot.cmd                         emmc_autoscript.cmd
 boot.cmd.aw                      initrd.img-5.7.0-rc6-arm-64
 boot-desktop.png                 System.map-5.7.0-rc6-arm-64
 boot-emmc.cmd                   'System Volume Information'
 boot-emmc.cmd.aw                 u-boot.emmc
 boot-emmc.scr.aw                 u-boot.ext
 boot.ini                         u-boot.usb
 boot.scr                         uEnv.txt
 boot.scr.aw                      uInitrd
 config-5.7.0-rc6-arm-64          zImage
root@arm-64:~/tmp# cd /dtb
-bash: cd: /dtb: No such file or directory

 

It's in blue

Edited by Armin

Share this post


Link to post
Share on other sites
1 hour ago, Armin said:

I can not access to dtb directory

You need to either be root (sudo su root) or sudo the actions you want because only root has permissions on the files in /boot 

Share this post


Link to post
Share on other sites
1 hour ago, Armin said:

root@arm-64:~/tmp# cd /dtb

I should have looked a bit closer at what you did, you were root so that wasn't the issue.  You really need to learn basic linux commands.  'cd dtb' is what you wanted to do, not 'cd /dtb'

Share this post


Link to post
Share on other sites
(edited)
24 minutes ago, SteeMan said:

I should have looked a bit closer at what you did, you were root so that wasn't the issue.  You really need to learn basic linux commands.  'cd dtb' is what you wanted to do, not 'cd /dtb'

Yes, you're right, I got tangled. Now, this is OK ! :thumbup:

 

@balbes150, maybe this is better if I create a specific topic for my issues and if you can move these posts on it ?

Edited by Armin

Share this post


Link to post
Share on other sites
(edited)

Hello,

 

After I'm using the meson-g12a-x96-max-no-cvbs DTB file with forcing the ethernet speed to 100Mb (sudo ethtool –s [device_name] speed 100 duplex full autoneg on) but after several tests, the ethernet connection was not stable (poor download speed).

 

Therefore, I have tried several DTB file with SD card booting and best results were confirmed with  meson-sm1-sei610-ethfix.dtb.

 

To avoid to transfer the SD installation to eMMC, I have choosen to add the DTB file  and Edit uEnv.txt directly on the eMMC.

 

PS: @balbes150, you can move the posts here (from comment-101922 to comment-101969).

Greetings

Edited by Armin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0