-
Notifications
You must be signed in to change notification settings - Fork 7
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
Helping with install to eMMC #24
Comments
Hi, May you pls look at https://linux-sunxi.org/Bootable_eMMC |
If I executed those commands, would this allow me to extract the current U-Boot contents/flash mainline U-Boot (with HDMI support)? And if so, what build would I need, or what config file would I need so that I can build it myself? I have a R620 server with 16C and 128GB of DDR3, so if something needs to be compiled, I can do that. |
I have access to U-Boot now, but when trying to run
Attached is the output of |
I see that you've already built a successful U-Boot image, so I'll stop worrying about that for now. I just can't figure out why the commands that linux-sunxi has on their website don't work/how you got the board's U-Boot to execute your U-Boot. |
Oh - commands that linux-sunxi has on their website may not work probably because sunxi page is about older uboot ver? Also - when you manage successful boot from emmc - maybe you can: |
Yeah, and are you referring to mainline on the image?
That's perfectly fine, but I figured since I have devices to mess around with I could do most of the lifting |
Yes. |
If I can compile it and install it onto a partition on the eMMC's storage, I will. One more thing though, what partition does your U-Boot recognize the eMMC as? |
On my lpddr3 h313 box i have:
it looks like: |
Alright, I'll look into this later today
…On Wed, Oct 4, 2023, 7:56 AM Piotr Oniszczuk ***@***.***> wrote:
On my lpddr3 h313 box i have:
[ 1.631687] sunxi-mmc 4022000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[ 1.633280] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 1.668451] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.670454] mmc0: new high speed SDXC card at address b368
[ 1.671749] mmcblk0: mmc0:b368 NCard 58.2 GiB
[ 1.675577] mmcblk0: p1 p2 p3
[ 1.706795] mmc2: new DDR MMC card at address 0001
[ 1.708045] mmcblk2: mmc2:0001 P1J95K 7.30 GiB
[ 1.711944] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
[ 1.716431] mmcblk2boot0: mmc2:0001 P1J95K 2.00 MiB
[ 1.719355] mmcblk2boot1: mmc2:0001 P1J95K 2.00 MiB
[ 1.914516] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 1.937543] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 1.953645] mmc3: new high speed SDIO card at address 0001
it looks like:
mmc0 is sd card
mmc2 is emmc
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIVJIE6MPLDKBSUBSQEJN5LX5VFFJAVCNFSM6AAAAAA5N4TFR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWG4ZDINBTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
h313 lpddr3 uboot from my build: |
Is it possible for me to include HDMI support for U-Boot so I can interface with it over just the monitor and NOT UART? |
Oh - hdmi support in uboot is rather big think (in sense of implementation). In allwinner i would rather not expect support soon... |
Alright. I tried just booting U-Boot on an SD card, and it seemed to have flashed it to the Boot0 partition. I rebooted your miniarch image, and am following the steps from linux-sunxi to try and reflash the new U-Boot image to Boot0. |
Seems to have crashed it, as there is no output whatsoever from UART. Any ideas? Here is the output of U-Boot from the SD card. No working controllers found The same goes for mmc dev 3 |
hmm - this might be issue with emmc support in uboot. |
Let me boot the thing back to factory, I'm going to re-try DD'ing the updated U-Boot build once I can get miniarch up and running again |
I just got a S905W2 box off of AliX. I'm having the exact same issue that others are having, and its the -110 error. Maybe this would help @warpme? |
Usually boot from eMMC is SoC specific so direct repeating procedure for AMlogic not works for Allwinner. |
@kerta1n Hi, were you able to install MiniArch on X96Q LPDDR3? I have the same box and I want to install MiniArch too on eMMC |
Nope, it's been a while now but there were just too many errors |
did you succede? i've got a full install now on sd which sometime boot and sometime not. is your boot 100% reliable? |
Nope, couldn't find the internal emmc under /dev |
I was able to install to emmc with X96Q LPDDR3 without too much difficulty. I first installed via sd card, then booted from that install I did the following.
|
Works like a charm! Thanks! |
Having not much experience with linux, this even worked for me! Awesome project here. |
I will give this a shot, thanks for the post |
@jalbrethsen |
It failed for me too, in my case it says "Couldn't calculate usage of mmcblk2, Exiting now" |
I think I still had to do "sed -e 's/warped.inet2.org/miniarch.mooo.com/g' -i /etc/pacman-miniarch.conf" from another issue before |
Thanks! This was a life saver for me. |
I just tried this again I get the error "Couldn't calculate usage of mmcblk2p, Exiting now". I appended "| sed 's/p//g' " in line 259 to remove the 'p', after that your script ran fine and installed correctly to emmc. |
May you pls try attached script and provide me log? |
I found miniarch related bug... |
You can refer to this issues. |
I just did a fresh install and tried this script to install to emmc. It worked perfectly, thanks! |
thx for testing! |
Hi @warpme,
Insane project you have here. I got two X96Q LPDDR3 boxes booted off of your image, and also tagged you on your minimyth2 repo, but wanted to know if I could help with figuring out how to install to the internal eMMC storage. I ended up using fdisk on one of the boxes, cloning the disk layout, and getting the H313 to recognize the internal storage as data, HOWEVER, I was unable to migrate the boot partition. Any way I could help here? Would be great to use these as IO-less RPi's (IK they are coming back in stock, but FOSS on a $10 device is crazy)
The text was updated successfully, but these errors were encountered: