xypron changed the topic of #u-boot to: #u-boot SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot 2023.01 / Merge Window is OPEN, -next is CLOSED / Release v2023.01 is scheduled for 2023-01-09 / Channel archives at https://libera.irclog.whitequark.org/u-boot
Net147 has quit [Quit: Quit]
Net147 has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
vagrantc has quit [Quit: leaving]
umbramalison has quit [Remote host closed the connection]
behanw has quit [Quit: Connection closed for inactivity]
umbramalison has joined #u-boot
persmule_ has joined #u-boot
umbramalison has quit [Client Quit]
umbramalison has joined #u-boot
thopiekar has quit [Ping timeout: 252 seconds]
thopiekar has joined #u-boot
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
haritz has quit [Remote host closed the connection]
haritz has joined #u-boot
haritz has joined #u-boot
haritz has quit [Changing host]
hanetzer has joined #u-boot
jclsn has quit [Ping timeout: 256 seconds]
jclsn has joined #u-boot
thopiekar has quit [Ping timeout: 260 seconds]
thopiekar has joined #u-boot
apteryx has quit [Ping timeout: 260 seconds]
mmu_man has quit [Ping timeout: 265 seconds]
vagrantc has joined #u-boot
apteryx has joined #u-boot
<apteryx> was u-boot able to boot from EFI back in 2015?
vagrantc has quit [Quit: leaving]
jkent has quit [Ping timeout: 248 seconds]
vagrantc has joined #u-boot
jkent has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
ikarso has joined #u-boot
camus has joined #u-boot
vagrantc has quit [Quit: leaving]
camus has quit [Read error: Connection reset by peer]
camus has joined #u-boot
<xypron> apteryx: the U-Boot EFI implementation was started in 2016.
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
xypron has quit [Quit: No Ping reply in 180 seconds.]
xypron has joined #u-boot
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #u-boot
Algotech75 has joined #u-boot
Algotech13 has joined #u-boot
Algotech75 has quit [Ping timeout: 260 seconds]
Algotech13 has quit [Ping timeout: 256 seconds]
wyre has quit [Quit: ZNC 1.8.2 - https://znc.in]
wyre_ has joined #u-boot
wyre_ has quit [Remote host closed the connection]
wyre_ has joined #u-boot
<LordKalma> Hello! I'm trying to "unvendor" some u-boot image
<LordKalma> it does some important initialization code that I'm trying to reverse engineer
<LordKalma> I do have a question tho, and you might be able to help
<LordKalma> I'll spare you the big text dump, if you'll be kind enough to read it here: https://reverseengineering.stackexchange.com/questions/31218/u-boot-base-address-on-ghidra
<LordKalma> (and yes, I have contacted the company without success in trying to exercise my GPLv2 rights)
Algotech75 has joined #u-boot
xroumegue has quit [Ping timeout: 256 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
wyre_ is now known as wyre
wyre has quit [Killed (NickServ (GHOST command used by wyre-!~wyre@2a02:c207:2045:3305::1))]
wyre has joined #u-boot
wyre has quit [Remote host closed the connection]
wyre has joined #u-boot
xroumegue has joined #u-boot
Algotech13 has joined #u-boot
Algotech75 has quit [Ping timeout: 256 seconds]
Algotech13 has quit [Ping timeout: 268 seconds]
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
mmu_man has joined #u-boot
Algotech75 has joined #u-boot
camus has quit [Ping timeout: 260 seconds]
Algotech75 has quit [Ping timeout: 260 seconds]
naoki has quit [Quit: naoki]
<Tartarus> LordKalma: er, strip off the checksum header and use dumpimage -l to see what it says
<LordKalma> Tartarus, thank you. In the meanwhile I got a reply, and it what I needed to do was load the file with offset 0x8040 (aka start of U-Boot + header), at regular address 0x4A00'0000
<LordKalma> I could now use your help in other way
<LordKalma> look at this beautiful disassembly :)
<LordKalma> if you recognize what the functions probably are, feel free to help :D :D
<LordKalma> and if I want to add this to u-boot
<LordKalma> where do I add this code?
<LordKalma> I assume create a file for this board? where? and what functions are required? sorry
<LordKalma> you just add a board_init function?
Julia[m]12 has quit [Quit: You have been kicked for being idle]
WoC has quit [Ping timeout: 255 seconds]
<Tartarus> Well, I'd look at this from another direction
<Tartarus> What's the SoC on this chip?
<Tartarus> Is it something we support in mainline today?
<Tartarus> It's probably pretty close to one of the eval kit designs
<Tartarus> And if you can find the dtb somewhere in the image, turning that back in to dts is very helpful too
WoC has joined #u-boot
WoC has quit [Remote host closed the connection]
WoC has joined #u-boot
sakman has quit [Quit: Leaving]
WoC has quit [Remote host closed the connection]
WoC has joined #u-boot
sakman has joined #u-boot
jahro_me has joined #u-boot
jahro_me has quit [Read error: Connection reset by peer]
jahro_me has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
Leopold has quit [Read error: Connection reset by peer]
Leopold has joined #u-boot
GNUtoo has joined #u-boot
naoki has joined #u-boot
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
<LordKalma> Tartarus, okay, let me get you up to speed. It's an Allwinner R16, which is basically an A33. Mainline U-Boot runs just fine and boots the linux kernel just fine. We already decompiled the DTS and with the help of people from #linux-sunxi on OFTC we made a clean DTS that looks like an "upstream" one. I haven't submited a patch because we're still
<LordKalma> ironing the kinks out of this stuff.
<LordKalma> this is the device
<LordKalma> people are already like even booting armbian on it for the lolz
<LordKalma> mostly everyting is supported by mainline linux and uboot
<LordKalma> except for the LCD panel
<LordKalma> I reverse engineered the kernel LCD driver but it didn't work
<LordKalma> and we discovered that it does work when paired with the vendor's U-Boot
<LordKalma> that's how we figured out u-boot is doing *something* to the LCD panel
<LordKalma> This is the kernel-side driver: https://github.com/ruilvo/panel-jinglitai-jlt4013a
<LordKalma> And this is our buildroot: https://github.com/ruilvo/AetherX6100
<LordKalma> if you check the buildroot we have a beautiful DTS, uboot and kernel defconfigs, buildroot defconfig
<LordKalma> wifi and USB host is working, everything is working
<LordKalma> except for the panel, that only works when vendor's u-boot is flashed over my compiled-from-source one
<LordKalma> and I don't want that
<LordKalma> I want to fix this
<LordKalma> that's why I took the effort to understand how to load this in Ghidra, I pin pointed the right function
<LordKalma> and now we want to 1) understand how to add this initialization to mainline uboot (first maybe via a patch on our buildroot or forked uboot, and then upstream it), or 2) forget about the LCD panel at uboot time and just add the initialization code to the linux driver
<LordKalma> we're thinking the latter might be easier
<LordKalma> but we still need to understand all the vendor u-boot is doing to initialize the panel
<LordKalma> so we can port it to the driver
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
persmule__ has joined #u-boot
persmule_ has quit [Remote host closed the connection]
vagrantc has joined #u-boot
Leopold has quit [Ping timeout: 255 seconds]
<marex> LordKalma: do the proper init in Linux
Leopold has joined #u-boot
clarity has quit [Ping timeout: 252 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
clarity has joined #u-boot
clarity has quit [Ping timeout: 268 seconds]
clarity has joined #u-boot