Giter Club home page Giter Club logo

Comments (37)

warpme avatar warpme commented on August 25, 2024 1

h313 lpddr3 uboot from my build:
u-boot-sunxi-with-spl.bin.zip

from miniarch.

warpme avatar warpme commented on August 25, 2024

Hi,

May you pls look at https://linux-sunxi.org/Bootable_eMMC
There is section about install u-boot from Linux....

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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.

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

I have access to U-Boot now, but when trying to run mmc bootbus 2 1 0 0 (mmc device is recognized as 2), it just spits out the help menu. Same goes for partconf but this build seems to allow modifying partitions thru the mmc command;

mmc info - display info of the current MMC device mmc read addr blk# cnt mmc write addr blk# cnt mmc erase blk# cnt mmc rescan mmc part - lists available partition on current mmc device mmc dev [dev] [part] - show or set current mmc device [partition] mmc list - lists available devices mmc hwpartition

Attached is the output of version, setenv, and bdinfo.
x96q-h313-uboot-info.txt

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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.

from miniarch.

warpme avatar warpme commented on August 25, 2024

Oh - commands that linux-sunxi has on their website may not work probably because sunxi page is about older uboot ver?
I'm using mainline uboot 2021.07.
I don't have much time to look on emmc boot on allwinner.
Probably best will be to ask at irc.
pls see https://linux-sunxi.org/Category:Community

Also - when you manage successful boot from emmc - maybe you can:
-write wiki about this
-devel. small script to automate this (i.e. started from sd card booted box which will dd rootfs/boot image + write bootloader)

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

Oh - commands that linux-sunxi has on their website may not work probably because sunxi page is about older uboot ver?
I'm using mainline uboot 2021.07.

Yeah, and are you referring to mainline on the image?

I don't have much time to look on emmc boot on allwinner.

That's perfectly fine, but I figured since I have devices to mess around with I could do most of the lifting

from miniarch.

warpme avatar warpme commented on August 25, 2024

Yeah, and are you referring to mainline on the image?

Yes.
It is 2021.07 mainline + patches:
https://github.com/warpme/minimyth2/tree/master/script/bootloaders/u-boot-h616/files

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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?

from miniarch.

warpme avatar warpme commented on August 25, 2024

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

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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?

from miniarch.

warpme avatar warpme commented on August 25, 2024

Oh - hdmi support in uboot is rather big think (in sense of implementation). In allwinner i would rather not expect support soon...

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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.

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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
Hit any key to stop autoboot: 0
=> mmc list
mmc@4020000: 0 (SD)
mmc@4021000: 3
mmc@4022000: 2
=> mmc dev 2
Card did not respond to voltage select! : -110

The same goes for mmc dev 3

from miniarch.

warpme avatar warpme commented on August 25, 2024

hmm - this might be issue with emmc support in uboot.
I think better approach will be to deal with writing to emmc under booted linux - as under linux we have very recent emmc support code (fixes, improvements) while under uboot emmc code is from 2021 (2y old)....

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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.
https://github.com/devmfc/debian-on-amlogic

Maybe this would help @warpme?

from miniarch.

warpme avatar warpme commented on August 25, 2024

Usually boot from eMMC is SoC specific so direct repeating procedure for AMlogic not works for Allwinner.
I don't have plans (and time/energy - as i'm doing this project as hobby in spare time) to work on eMMC booting.
By above - If you mind - i'm closing with status "not planned"

from miniarch.

xAbdaziz avatar xAbdaziz commented on August 25, 2024

@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

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

Nope, it's been a while now but there were just too many errors

from miniarch.

aldolo69 avatar aldolo69 commented on August 25, 2024

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?

from miniarch.

kerta1n avatar kerta1n commented on August 25, 2024

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

from miniarch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.