-
Notifications
You must be signed in to change notification settings - Fork 17
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
Emmc #44
Comments
I can't see the emmc on fdisk ... Do you recommend a different kernel version? Is any chance to have a bare debian 10 Start with this IMG and upgrade the kernel to 5.7: Upgrade Kernel: Kernel and some IMG releases: |
I understand, i chose banana pi over raspberry pi because rpi won't implement eMmc on their boards anytime soon, but it's so poor on software support. |
This board has eMMC but the layout is a bit different: |
This is the board i have right now |
I got the links |
Ubuntu 19.10 |
Ubuntu 19.10 - Eoan Ermine with Kernel 5.3.5 |
Can I use the kernel 5.7 and configuration on Ubuntu 16.4? If after you boot and you don't see the modules with lsmod you will have to move /usr/lib/modules/KERNEL_VERSION to /lib/modules/ If this happens you won't be able to ssh to the board and will need to use HDM or the serial debug |
I'll give it a try. |
ok so kernel 5.3 and 5.7 only detects /dev/mmcblk0 ... ERROR ### Please RESET the boardThis is with the image flashed on eMMC ... |
Try this: 1 - Update u-boot (only the bootloader) from this tag: 2 - make sure eMMC is active 3 - Make sure the root device is correct for eMMC, change it in /boot/boot.cmd |
there is no /dev/sd* ... |
/dev/sd* is for USB SDHC reader/writer (if you connect to a PC box running Linux) |
i did this : Device Boot Start End Sectors Size Id Type Disk /dev/mmcblk2: 7.29 GiB, 7818182656 bytes, 15269888 sectors Device Boot Start End Sectors Size Id Type |
i`m trying to change some settings here setup boot_devicefdt set mmc${boot_mmc} boot_device <2> and i get the same result on boot ERROR ### Please RESET the board |
There is no boot.cmd ... I'll try to decompile boot.scr and edit it in order to take action ... |
to be able to boot from eMMC you have to format it and copy the bootloader, boot, and rootfs. |
well is not working for me unfortunately ... |
Boot from SD card and see what you get with this command: ls /dev/mmcblk* |
root@bpi-m2z: |
1 - when booting from SD CARD: 2 - when booting without SD CARD
3 - Update u-boot with: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v3.4 4 - Use this scripts to format and install kernel and rootfs and update bootloader with the new version:
reboot without SD CARD, i think a debug ttl uart is indispensable |
try: |
i`m controlling the board via uart ttl https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v3.4 fdisk -l: Device Boot Start End Sectors Size Id Type still can`t see the emmc ... #11 (comment) with this dtb the emmc is /dev/mmcblk2 and i don |
This DTB has eMMC enabled, try with this dtb.
This for kernel 5.7.x-server |
you mean this one? i can only see that 5.7 kernel but no "server" tag on it |
yes! |
this is output from sd-card boot Device Boot Start End Sectors Size Id Type Disk /dev/mmcblk2: 7.3 GiB, 7818182656 bytes, 15269888 sectors Device Boot Start End Sectors Size Id Type Ubuntu 16.04.4 LTS dd if=/dev/mmcblk0 of=/dev/mmcblk2 bs=10M status=progress U-Boot SPL 2020.04 (Apr 21 2020 - 14:52:45 +0000) ERROR ### Please RESET the boardon Ubuntu 19.10 the same ... so that dtb has a problem by booting from emmc ... |
Who told you this instructions would work? dd if=/dev/mmcblk0 of=/dev/mmcblk2 bs=10M status=progress |
well how can i boot from eMMC ? |
Trying to boot from MMC2 boot.cmd must tell the boot loader what device number eMMC is. I will release a new Kernel and will prepare the script for writing to eMMC and try to guess which ID number we can try. Meanwhile, you can edit the boot.cmd (mount it booting with SD CARD) and recompile it to .scr, unmount it, and reboot. |
root=/dev/mmcblk0p2 => adjust to root=/dev/mmcblk1p2 |
[ 2.532005] Run /init as init process / # [ 32.481996] vcc3v0: disabling / # |
So must be: Waiting for root system /dev/mmcblk2p2 Try to check in the shell.
|
/ # ls /dev/mmc* i`ll fix it now in few minutes |
we now know .. for the record: |
[ 2.481578] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 |
i`ll try to copy it one more time ... so it is the bpi-m2-zero_boot_1.scr with root=/dev/mmcblk2p2 and /etc/fstab modified right now |
right, did you use the format_mainline.sh /dev/mmcblk2 to burn the eMMC? I think you used dd.. |
well i formated and after i used dd |
that's why you get: [ 7.891324] EXT4-fs (mmcblk2p2): bad geometry: block count 1909760 exceeds size of device (1876992 blocks) |
i will redo the scripts with your information and you burn the eMMC. |
so how can i copy from sd card afer format without using dd ? |
I would tar.gz the boot and the rootfs and untar in each partition (eMMC), is faster. |
i resized the partition . working from emmc now ... |
Would you like a working image? |
I don't have the board. Maybe you make a backup of eMMC and announce it on the forum. What is the Ubuntu version? |
is the 16.04 LTE ... is your image actually Disk /dev/mmcblk2: 7.3 GiB, 7818182656 bytes, 15269888 sectors Device Boot Start End Sectors Size Id Type |
it is strange ... i have resized the partition and i reboot it then worked Waiting for root system /dev/mmcblk2p2, countdown : 3 |
I will prepare the scripts late tonight. |
I'll try to setup the partitions manually ... |
Script to format and create partitions (/boot and /rootfs)
Make sure the symlinks are corrects |
ok so ... on your script, when you formated the partition you have the syntax should be p1 and p2 ... now the partitions can be mounted |
I have an working eMMC image |
Yes, there are ways to shrink the IMG. I will think one of them. What size did you get? |
Around 7G unzipped ... |
Copy the rootfs and Compress it:
unmount eMMC
Do the same for the /boot partition in eMMC
|
Ok and you have two zip files .... |
You can shrink rootfs partition to 2.2G (after the clean up described above) and 7zip the /dev/mmblck2 for the users, they just need to dd to /dev/mmcblk2 and resize! |
ok, the large image when is zipped is less than 300MB and it is with full eMMC size and settings .. |
Hi
First of all thank you for your great work.
It's like a nice surprise ...
I have installed the bare ubuntu with kernel 14.7 from :
https://mega.nz/#!obIAVQiA!G0CCABkLunCcG8hEqMf7NfjTBK1jgMytt2f0VdtOl08
I can't see the emmc on fdisk ...
Do you recommend a different kernel version?
Is any chance to have a bare debian 10 os with a stable kernel too? I mean on debian/Raspbian you have 2 kernels. Version 3 what runs ok and smoothie but is no AP network mode compatible and Version 4,4 where load average is pretty high (over 1 on idle)
For those who use i2c, gpio, spi, serial and wifi ap mode, a bare system is great.
Thank you for your time
The text was updated successfully, but these errors were encountered: