00:00
<
apritzel >
mainline U-Boot has the latest DT, and you can use that very DT to boot any kernel, no need to load anything extra or rely on the distro shipping something
00:00
<
ayunami2000 >
and that auto boots manjaro
00:00
<
ayunami2000 >
from the emmc where i got it installed
00:00
<
ayunami2000 >
but it just sits in fel mode until i run that command
00:00
<
ayunami2000 >
on my pc
00:00
<
ayunami2000 >
which this new u-boot build should fix
00:01
<
apritzel >
there is a much short command line: sunxi-fel uboot /path/to/u-boot-sunxi-with-spl.bin
00:01
<
ayunami2000 >
i mightve tried that earlier and it failed maybe because my u-boot build wasnt correct
00:01
<
apritzel >
that does all the above automatically: it uses TF-A from the image, loads the SPL and U-Boot proper, and does the proper reset
00:02
<
ayunami2000 >
but i cant remember anymore lol
00:02
<
ayunami2000 >
btw i am correct in that i still need to wrap the u-boot-sunxi-with-spl.bin with toc0 right
00:02
<
ayunami2000 >
before flashing to mmcwhatever2boot0
00:02
<
apritzel >
I don't know if Manjaro uses UEFI boot, do you see a grub screen, by any chance?
00:02
<
ayunami2000 >
i do not
00:02
<
apritzel >
no, with the defconfig everything is done for you
00:03
<
ayunami2000 >
oh ok cool
00:03
<
ayunami2000 >
so just flash the u-boot-sunxi-with-spl.bin to mmcwhatever2boot0
00:03
<
apritzel >
mkimage (the U-Boot tool generating the one image file) knows about TOC0 now, and the defconfig sets that
00:03
<
ayunami2000 >
ok ill give it a try
00:04
<
apritzel >
and have you enabled the eMMC boot partition correctly?
00:04
<
ayunami2000 >
SPL: eGON header is not found
00:05
<
ayunami2000 >
can no longer inject uboot to fel
00:05
<
apritzel >
argh, yeah, right
00:05
<
apritzel >
this is because sunxi-fel requires an eGON image
00:06
<
apritzel >
it then parses the image and uploads the components, like you did above
00:06
<
apritzel >
but it doesn't understand TOC0
00:06
<
ayunami2000 >
is there a way to unwrap from toc0
00:06
<
apritzel >
(yet, I have some patches, but they have issues)
00:07
<
apritzel >
if you want to do FEL boot, I recommend you turn off TOC0: use menuconfig, search (type '/') for TOC0 and switch it back to eGON
00:07
<
apritzel >
then rebuild
00:07
<
ayunami2000 >
ill copy the bin out of there
00:07
<
ayunami2000 >
so i can have both
00:08
<
apritzel >
please note you still need the complete TOC0 build for eMMC boot
00:08
<
ayunami2000 >
yeah im gonna have both
00:08
<
ayunami2000 >
one for using with fel
00:08
<
ayunami2000 >
one for emmc
00:09
<
ayunami2000 >
the one for emmc is the toc0
00:09
<
apritzel >
do make ..._defconfig; build that (that's TOC0), then make menuconfig, switch to eGON, build that: that's for FEL
00:11
<
ayunami2000 >
ok got both bin files
00:11
<
ayunami2000 >
here goes
00:11
<
apritzel >
sorry for the mess, I am sitting on the TOC0 FEL patches for a while, but there is some weird bug I didn't find time to hunt down yet
00:11
<
ayunami2000 >
YAYY ITS WORKING
00:11
<
apritzel >
eMMC boot?
00:11
<
ayunami2000 >
lets see if it booted from sd or not
00:12
<
ayunami2000 >
oh i still need to flash u-boot to the emmc
00:12
<
ayunami2000 >
its now launched the weird version of manjaro
00:12
<
ayunami2000 >
that has no wifi
00:12
<
ayunami2000 >
that i have on the emmc
00:12
<
apritzel >
the TOC0 image should work on an SD card (offset 8k), eMMC partition (8K), and eMMC boot partition (no offset)
00:12
<
ayunami2000 >
do you think i can flash the boot0 while booted
00:13
<
apritzel >
which boot0? The vendor one, from Remix?
00:13
<
ayunami2000 >
no i mean flash the u-boot to emmc boot0
00:13
<
ayunami2000 >
sorry
00:13
<
ayunami2000 >
also i failed to backup boot0 or boot1 i only backed up the rest of the emmc
00:14
<
apritzel >
IIRC Remix use normal eMMC partitions
00:14
<
ayunami2000 >
oops this is wrong keyboard
00:14
<
apritzel >
so you can put mainline on the boot partition
00:15
<
ayunami2000 >
aaargh without wifi i cant get the bin file over to it
00:15
<
ayunami2000 >
unless i use a flash drive
00:15
<
ayunami2000 >
WAIT since its not booting off the sd card
00:15
<
ayunami2000 >
i can take it out while its on
00:15
<
apritzel >
yes, or that
00:16
<
apritzel >
so you put mainline U-Boot TOC0 on an SD card, booted from there, and then it picked up Manjaro from the eMMC?
00:16
<
ayunami2000 >
oh i havent gotten that far yet
00:16
<
ayunami2000 >
i just now added the u-boot toc0 to the sd card from my pc
00:16
<
apritzel >
FEL booting still?
00:16
<
ayunami2000 >
yeah rn im still in fel
00:17
<
ayunami2000 >
im about to put the microsd back into the remix mini
00:17
<
ayunami2000 >
and then use manjaro dd to flash it
00:17
<
ayunami2000 >
to mmc boot0
00:17
<
apritzel >
sounds good
00:17
<
ayunami2000 >
i have to unplug the hdmi every time
00:17
<
ayunami2000 >
grumble grumble
00:17
<
ayunami2000 >
bc its in the way
00:17
<
apritzel >
if you haven't used the eMMC boot partition before, please remember to activate it
00:18
<
apritzel >
yeah, the connectors are quite tight ...
00:18
<
ayunami2000 >
oh yeah i did those 2 commands to the emmc
00:20
<
ayunami2000 >
oh my god this manjaro install is so unstable
00:20
<
ayunami2000 >
i keep getting logged out i can only assume xfce is crashing
00:20
<
ayunami2000 >
ctrl alt f1 my beloved
00:21
<
ayunami2000 >
rip i cant find the microsd device in manjaro
00:21
<
ayunami2000 >
its apparently that bad of an install
00:21
<
ayunami2000 >
guess im booting armbian off the sd card
00:22
<
ayunami2000 >
whats the u-boot command i need to boot from microsd
00:22
<
ayunami2000 >
rather than emmc
00:22
<
ayunami2000 >
because the emmc install is bad but the microsd install is good
00:26
<
apritzel >
the BootROM tries SD card first, so you should always be able to recover
00:27
<
ayunami2000 >
oh also my sd card has the force fel boot toc0 on it
00:27
<
ayunami2000 >
along with armbian
00:27
<
apritzel >
if you put the mainline U-Boot TOC0 there instead, it should boot
00:28
<
ayunami2000 >
like itll boot the sd card?
00:28
<
ayunami2000 >
or the emmc
00:28
<
ayunami2000 >
because rn when i use fel to put in uboot it boots emmc
00:28
<
apritzel >
it will load U-Boot from the SD card
00:28
<
ayunami2000 >
yeah but my goal is to boot armbian which is stored on the sd card
00:28
<
apritzel >
then U-Boot should check the SD card partitions first, for finding Linux
00:28
<
ayunami2000 >
well apparently it is not
00:29
<
apritzel >
if you boot from SD?
00:29
<
ayunami2000 >
lemme try
00:29
<
ayunami2000 >
maybe itll work
00:29
<
apritzel >
we figure out where we are booted from, and scan this device first
00:30
<
ayunami2000 >
oh neat
00:30
<
ayunami2000 >
lets see
00:31
<
ayunami2000 >
its still in fel
00:31
<
ayunami2000 >
btw, the reason i used the sd for fel boot is bc the button for fel boot broke
00:31
<
ayunami2000 >
like it rattles around n stuff
00:31
<
ayunami2000 >
hopefully it doesnt just always go to fel boot now
00:32
<
apritzel >
that hidden one, behind that small hole?
00:32
<
ayunami2000 >
i poked it too much
00:32
<
ayunami2000 >
oh i forgot seek=8
00:32
<
ayunami2000 >
lets try again
00:33
<
apritzel >
ouch, that means you nuked the partition table?
00:33
<
ayunami2000 >
idk maybe there wasnt anything important on there though so its fine
00:33
<
ayunami2000 >
damn ur right
00:33
<
ayunami2000 >
is there a way to unnuke it easily
00:34
<
apritzel >
if that is an Armbian image, you should be able to restore it, by just copying the first sector
00:34
<
ayunami2000 >
yep it is
00:34
<
ayunami2000 >
awesome
00:34
<
apritzel >
dd if=armbian.img of=mmcblk count=1
00:35
<
ayunami2000 >
lol its the pine64 armbian image
00:35
<
apritzel >
but then Armbian adjusts the partition size of first boot, IIRC, so this might not work too well
00:35
<
ayunami2000 >
eh lets find out shall we
00:35
<
apritzel >
btw: it looks like the generic flavour of Manjori uses UEFI, which might magically solve your WiFi issue
00:35
<
ayunami2000 >
oh neat
00:35
<
ayunami2000 >
ill give it a try
00:35
<
apritzel >
since UEFI will use U-Boot's devicetree
00:36
<
ayunami2000 >
ok so now at minimum it should boot to u-boot right
00:36
<
ayunami2000 >
and maybe itll boot armbian not sure
00:37
<
ayunami2000 >
its still in fel
00:37
<
ayunami2000 >
why is it still in fel
00:37
vagrantc has quit [Quit: leaving]
00:37
<
ayunami2000 >
is there a way to get fel to boot uboot from the sd
00:39
<
apritzel >
not easily, though you can chainload U-Boots (though this won't help you)
00:39
<
ayunami2000 >
oh good news i think the partitions are at least somewhat better
00:39
<
ayunami2000 >
i can use mmc in u-boot
00:39
<
ayunami2000 >
and it sees a second device
00:41
<
apritzel >
so did you try the TOC0 image on an SD card at offset 8K now? That should boot regardless of the partition table
00:41
<
ayunami2000 >
i did but it does not work it still goes to fel
00:42
<
apritzel >
maybe it's then the FEL button being stuck?
00:42
<
ayunami2000 >
maybe.
00:42
<
apritzel >
it's not too complicated to open, just be careful with that touch cable that's somehow soldered to the lid
00:43
<
ayunami2000 >
ive opened it thats how i discovered i broke the button lol
00:44
<
apritzel >
it's odd, since the button needs to closed to force FEL, I guess if it's broken the connection would be open?
00:44
<
ayunami2000 >
thats what i was thinking
00:45
<
apritzel >
it's worth double checking that SD card image: is it really the TOC0, at offset 8K?
00:45
<
apritzel >
Do you have serial connected? or just HDMI?
00:46
<
ayunami2000 >
just hdmi
00:46
<
apritzel >
bummer, that would simplify the diagnosis
00:46
<
ayunami2000 >
i can prob flash the u-boot toc0 to the emmc via u-boot
00:46
<
ayunami2000 >
i actually already went thru making a vfat on a flash drive
00:47
<
ayunami2000 >
and putting my failed attempt of u-boot on there
00:47
<
ayunami2000 >
so i can just do that again
00:47
<
ayunami2000 >
the only downside is that the flash drive is actually a rooted mini phone that i have to wait to boot
00:48
<
apritzel >
the U-Boot doc lists what to do for flashing U-Boot from U-Boot, also for the boot partition
00:48
<
apritzel >
sorry, have to call it a day here, but feel free to dump stuff in here, will read the logs tomorrow ...
00:49
<
ayunami2000 >
alr, thanks for all ur help!!
00:49
<
ayunami2000 >
really appreciated
00:57
apritzel has quit [Ping timeout: 480 seconds]
00:59
<
ayunami2000 >
oh my god it worked
01:00
<
ayunami2000 >
i was able to use u-boot to flash the toc0 u-boot
01:00
<
ayunami2000 >
to the emmc
01:00
<
ayunami2000 >
and it WORKED IT BOOTS MANJARO YAYYYY
01:00
<
ayunami2000 >
now the easier part, getting the right build of manjaro
01:00
<
ayunami2000 >
ty again
01:14
ayunami2000 has quit [Quit: Page closed]
01:25
hentai has joined #linux-sunxi
01:46
ftg has quit [Read error: Connection reset by peer]
02:38
montjoie_ has joined #linux-sunxi
02:40
montjoie has quit [Ping timeout: 480 seconds]
02:47
gnarface has quit [Remote host closed the connection]
02:55
flyback has quit [Ping timeout: 480 seconds]
02:57
gnarface has joined #linux-sunxi
03:04
flyback has joined #linux-sunxi
03:43
Schimsalabim has quit [Ping timeout: 480 seconds]
03:43
Schimsalabim has joined #linux-sunxi
03:46
<
parthiban >
MasterR3C0RD please do submit the syscon changes. Thanks
03:51
Jookia has joined #linux-sunxi
04:27
hexdump0815 has joined #linux-sunxi
04:29
hexdump01 has quit [Ping timeout: 480 seconds]
04:37
JohnDoe_71Rus has joined #linux-sunxi
07:36
apritzel has joined #linux-sunxi
07:54
warpme has joined #linux-sunxi
09:25
Schimsalabim has quit [Ping timeout: 480 seconds]
09:28
Schimsalabim has joined #linux-sunxi
09:28
warpme has joined #linux-sunxi
10:27
mripard has joined #linux-sunxi
10:27
immibis has quit [autokilled: Host violated network policy. - Contact support@oftc.net for help. (2024-11-27 10:27:59)]
10:38
Schimsalabim has quit [Read error: Connection reset by peer]
10:38
Schimsalabim has joined #linux-sunxi
10:48
ing_warn_ has quit [Ping timeout: 480 seconds]
10:52
bauen1 has quit [Ping timeout: 480 seconds]
10:57
ing_warn has joined #linux-sunxi
11:16
apritzel_ has joined #linux-sunxi
11:22
apritzel has quit [Ping timeout: 480 seconds]
12:03
dsimic is now known as Guest1233
12:03
dsimic has joined #linux-sunxi
12:05
Guest1233 has quit [Ping timeout: 480 seconds]
12:18
apritzel has joined #linux-sunxi
12:24
apritzel_ has quit [Ping timeout: 480 seconds]
12:30
apritzel has quit [Ping timeout: 480 seconds]
12:46
warpme has joined #linux-sunxi
12:48
bauen1 has joined #linux-sunxi
12:59
apritzel has joined #linux-sunxi
13:26
warpme has joined #linux-sunxi
13:52
Schimsalabim has quit [Ping timeout: 480 seconds]
13:53
Schimsalabim has joined #linux-sunxi
14:10
hazardchem has quit [Remote host closed the connection]
14:10
hazardchem has joined #linux-sunxi
14:24
bauen1_ has joined #linux-sunxi
14:26
bauen1 has quit [Ping timeout: 480 seconds]
14:41
JohnDoe_71Rus has joined #linux-sunxi
14:56
apritzel has quit [Ping timeout: 480 seconds]
15:55
Schimsalabim has quit [Read error: Connection reset by peer]
15:56
Schimsalabim has joined #linux-sunxi
16:15
apritzel has joined #linux-sunxi
16:20
Schimsalabim has quit [Ping timeout: 480 seconds]
16:21
Schimsalabim has joined #linux-sunxi
16:36
apritzel has quit [Ping timeout: 480 seconds]
16:51
bauen1_ has quit [Ping timeout: 480 seconds]
16:54
vagrantc has joined #linux-sunxi
16:56
parthiban has quit [Remote host closed the connection]
16:56
parthiban has joined #linux-sunxi
17:11
ftg has joined #linux-sunxi
18:58
warpme has joined #linux-sunxi
19:07
Schimsalabim has quit [Read error: Connection reset by peer]
19:07
Schimsalabim has joined #linux-sunxi
19:09
Jookia has left #linux-sunxi [#linux-sunxi]
19:15
Schimsalabim has quit [Ping timeout: 480 seconds]
19:18
Schimsalabim has joined #linux-sunxi
19:23
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
19:43
warpme has joined #linux-sunxi
20:55
apritzel has joined #linux-sunxi
21:39
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
21:43
bauen1 has joined #linux-sunxi
21:56
electricworry has joined #linux-sunxi
21:57
electricworry has left #linux-sunxi [#linux-sunxi]
21:59
electricworry has joined #linux-sunxi
21:59
<
loki666 >
apritzel, was looking at sunxi bsp kernel5.4 ccu clk driver, and the .enable bit is 27, not 31 as in mainline
21:59
<
loki666 >
it does ring a bell with what you tried to do to fix my issues with cpufreq
22:14
<
apritzel >
well, technically bit 31 is the enable bit, and bit 27 is a gate, so mainline is correct in this respect.
22:14
<
apritzel >
It's just that AW doesn't recommend to disable the PLLs at runtime, instead gate them only
22:16
<
apritzel >
loki666: but did that swap of bits change anything for your cpufreq experience?
22:22
<
loki666 >
just looking at lines of code as a hobby
22:24
<
loki666 >
but I couldn't find the reparenting mechanism you posted on ML in their kernel
22:56
macromorgan has joined #linux-sunxi
23:12
<
apritzel >
loki666: interesting, but maybe it's implemented differently, and they hack it somehow in the cpufreq code?
23:13
<
apritzel >
because the H616 manual clearly states that the CPU should be clocked by something else during the PLL change
23:13
<
apritzel >
which is in contrast to earlier SoCs like the A64, where they claimed that changing the CPU PLL would be glitch-free, which is not really the case
23:15
ftg has quit [Read error: Connection reset by peer]