Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.07 is OUT / Merge Window is OPEN until 26 July 2021 / Release v2021.10 is scheduled for 04 October 2021 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
mmu_man has quit [Ping timeout: 272 seconds]
flyback has quit [Remote host closed the connection]
flyback has joined #u-boot
jwillikers has joined #u-boot
jwillikers has quit [Remote host closed the connection]
macromorgan has quit [Killed (calcium.libera.chat (Nickname regained by services))]
macromorgan has joined #u-boot
agust has joined #u-boot
fdanis_away is now known as fdanis
guillaume_g has joined #u-boot
sbach has quit [Read error: Connection reset by peer]
sszy has joined #u-boot
mckoan|away is now known as mckoan
sbach has joined #u-boot
gsz has joined #u-boot
alpernebbi has joined #u-boot
monstr has joined #u-boot
mranostaj has quit [Remote host closed the connection]
mranostaj has joined #u-boot
redbrain has joined #u-boot
frieder has joined #u-boot
cebrax has joined #u-boot
<cebrax> hello
<cebrax> Is this channel active?
<cebrax> I am pretty new to embedded linux
<cebrax> Does anybody know *whether* u-boot-fslc v2020 support LCD IF drivers for iMX6ULL or not?
frieder has quit [Remote host closed the connection]
matthias_bgg has joined #u-boot
jwillikers has joined #u-boot
mmu_man has joined #u-boot
<marex> cebrax: for downstream forks, ask the fork vendor (NXP in this case)
<marex> cebrax: however, if you plan to display splash screen in u-boot, you will get flicker when linux boots and reinits the display, better boot fast enough and let linux init the display
<cebrax> yeah, asked them and they have forwarded me to a dts example and that's all..
<cebrax> Actually I am trying to learn and trying to do this for educational purposes, so I don't mind the flicker at all
<cebrax> I have linux controlling the display correctly but cannot say the same for u-boot
<cebrax> So, I've seen this video, it's in Chinese but even without sound you can understand it:
<marex> cebrax: try drivers/video/mxsfb.c in mainline u-boot, that's for LCDIF IP, although I never tried it on 6ull
<marex> the only thing one can learn from downstream forks is how to not do things ...
<marex> 6ull is supported in mainline, just use that
<cebrax> by mainline you mean https://source.denx.de/u-boot/u-boot, right?
<cebrax> I don't understand u-boot-fslc, why break something if it's working?
<cebrax> Sorry if I am being too dumb, it's my first time in embedded linux world
<marex> cebrax: upstreaming takes extra time and isn't as willing to accept random half-cooked patches as fork is
<cebrax> So, for the sake of learning, I guess it is better for me to patch u-boot-fslc v2020 using v2021? By patching, I mean copy, paste edit the current code source on my machine
<marex> which machine is that ?
<cebrax> I am feeling I should not mess with bureaucracy of proper patching, yocto-recipe making etc?
<marex> if you want to deal with u-boot, set up cross toolchain and build it by hand, ignore OE and all the other buildsystem crap for now
<cebrax> I am building it using YOCTO on a ubuntu VM
<marex> ubuntu has cross toolchains in it, so just install those
<marex> the you can build u-boot from scratch by hand
<cebrax> OK, how do I burn it to my SD card so that I can make it bootable?
<cebrax> YOCTO creates .wic images for me, which includes uboot and rootfs
<cebrax> I only burn it to SD by using "dd"
<marex> cebrax: dd u-boot.imx or whatever you get to the right offset of the SD card
<marex> cebrax: which machine is that ?
<cebrax> By machine, do you mean my board?
<marex> yes
<marex> so, custom ?
<cebrax> It's my custom board, I didn't want to start with an EVK, I wanted to learn it myself
<marex> designed with kicad, impressive
<cebrax> Thank you :)
<marex> cebrax: so if you read manual here https://u-boot.readthedocs.io/en/latest/board/freescale/mx6ullevk.html , it tells you how to write u-boot to SD card on some random mx6ull board
<marex> sdb is the SD card, dont overwrite your drive
<marex> in your case, sdb might be something else
<cebrax> Oh, thank you, so it just pops up a .imx file ready to burn, great! :D
<marex> cebrax: have a look at 5b6f8f30835 ("ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK")
<marex> cebrax: that's in mainline u-boot, that tells you how to add custom board
<marex> cebrax: so clone that source.denx.de repo, look at the patch, copy/adapt/fill in your hardware details, compile, test ... you get the idea
<marex> and yes, dd the result to SD card to specific offset, per the link above
<cebrax> marex Yay, thank you, these directions are very helpful, thank you very much! :)
<marex> cebrax: did you run the NXP DDR tool on your board to validate your DDR actually works as it should btw ?
<cebrax> Yes, it passed the DDR stress test
<marex> ok, good
<marex> cebrax: make sure to do the test for frequencies a bit around the 400 MHz range too
<cebrax> Hmm, OK, I will try to do that too
<cebrax> Thank you very much
<marex> seems like a good idea with new custom hardware, otherwise it might start to fail in various weird thermal conditions
<cebrax> Hmm, got it! :]
<marex> cebrax: well, and then once you have it going, try the mxsfb driver, it worked on mx28, but the mx6ull lcdif might be slightly different (they all are, nxp keeps mutating them between different soc series)
<marex> cebrax: if you have it running in linux, dump the mxsfb registers via /sys/kernel/debug/regmap/ or with devmem and compare the result with what u-boot programs into those ... there is like 10 relevant registers, so it should be easy to follow the bits
<cebrax> How do I understand if uboot-fslc even tries to initialize lcdif?
<marex> no idea about u-boot-fslc , they have some hundreds of thousands of lines changed from mainline u-boot
<marex> cebrax: but if you git grep VIDEO_MXS in mainline, there seem to be a few example boards, e.g.
<marex> include/configs/pico-imx6ul.h:#define CONFIG_VIDEO_MXS
<marex> include/configs/colibri-imx6ull.h:#define CONFIG_VIDEO_MXS
<marex> and the mxsfb driver tells you what to do -- setenv videomode video=...
<marex> you can stick printf()s into the driver to see if its functions are called
<cebrax> include/configs/pico-imx6ul.h: yes this is the one I was trying to look at
<cebrax> oh, so I can use printf and it will debug into uboot terminal?
<marex> probably the toradex colibri might be a better example, toradex tends to maintain their stuff in working order
<marex> yeah
<cebrax> that is hell a great advice thank you
<marex> most of the time, after uart is inited
<marex> which it is once you reach the shell
guillaume_g has quit [Quit: Konversation terminated!]
redbrain has quit [Quit: leaving]
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #u-boot
guillaume_g has joined #u-boot
cebrax has quit [Quit: Client closed]
redbrain has joined #u-boot
vagrantc has joined #u-boot
monstr has quit [Remote host closed the connection]
redbrain has quit [Ping timeout: 252 seconds]
torez has joined #u-boot
redbrain has joined #u-boot
Zapy has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
guillaume_g has quit [Quit: Konversation terminated!]
biot has joined #u-boot
redbrain has quit [Ping timeout: 272 seconds]
Zapy has joined #u-boot
vagrantc has joined #u-boot
mckoan is now known as mckoan|away
fdanis is now known as fdanis_away
mmu_man has quit [Ping timeout: 258 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 258 seconds]
mmu_man has joined #u-boot
gsz has quit [Ping timeout: 250 seconds]
niska has quit [Quit: Leaving]
gsz has joined #u-boot
niska has joined #u-boot
sszy has quit [Ping timeout: 268 seconds]
gsz has quit [Ping timeout: 240 seconds]
gsz has joined #u-boot
gsz has quit [Ping timeout: 272 seconds]
gsz has joined #u-boot
gsz has quit [Ping timeout: 240 seconds]
milkylainen_ has quit [Quit: Connection closed]
milkylainen_ has joined #u-boot
gsz has joined #u-boot
override has quit [Ping timeout: 250 seconds]
matthias_bgg has quit [Quit: Leaving]
gsz has quit [Quit: leaving]
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
urja has quit [Read error: Connection reset by peer]
urja has joined #u-boot
mranostaj has quit [Ping timeout: 272 seconds]
alpernebbi has quit [Quit: alpernebbi]
mranostaj has joined #u-boot
torez has quit [Quit: torez]
vagrantc has quit [Quit: leaving]
agust has quit [Quit: Leaving.]
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot