cnxsoft has joined #imx6-dev
Nilesh_ has joined #imx6-dev
cnxsoft1 has joined #imx6-dev
cnxsoft has quit [Ping timeout: 240 seconds]
cnxsoft1 is now known as cnxsoft
_whitelogger has joined #imx6-dev
_whitelogger has joined #imx6-dev
<vpeter> yates: Not much discussions here :(
<vpeter> soc hot on boot: maybe there is no throttling and soc works max? Just don't stay too long in u-boot :-)
<vpeter> About bare metal program: Doesn't u-boot has some sample?
<dv_> we are all too busy with stuff :)
Nilesh_ has quit [Quit: Connection closed for inactivity]
Nilesh_ has joined #imx6-dev
<otavio> yates: u-boot uses it in a fixed frequency; it disables some clocks which aren't need for booting to save some power and keep cool
Nilesh_ has quit [Quit: Connection closed for inactivity]
cnxsoft has quit [Quit: cnxsoft]
<yates> ok, well thanks for th responses (except dv_... :)
<yates> also a question on the sdcard partition layout: "partition" 1: unformatted 4 MB, partition 2: FAT32, partition3: linux (ext3?)
<yates> is partition 1 used for u-boot?
<yates> partition 2 has the zImage and the dtb files
<yates> i didn't explicity see u-boot.img anywhere, so i'm guessing it's on partition 1 (which isn't really a partition)
<yates> that is, i mounted the fat32 and linux portions of a .img file and that (ab0ve) is what I saw.
<yates> is partition 1 used for u-boot?
<yates> !!!! is partition 1 used for u-boot??? !!!!
<yates> otavio: ?
<yates> vpeter: btw, good idea about u-boot. i should just hijack it and make my own custom boot thingie
<vpeter> yates: u-boot.img is used with SPL. If there is no SPL used then you have u-boot.imx which is written to 1024 bytes offset.
<vpeter> unformatted 4 MB is for make partitions aligned to 4MB to get optimized results.
<vpeter> So your "partition 2" is actually first one.
<yates> what is SPL?
<yates> vpeter: i removed everything from partition2 and i am getting u-boot messages
<yates> (i mounted the .img file on my desktop linux machine first, then unmounted it and did a dd if=.img of=/dev/sdcardreader
<yates> (i mounted the .img file on my desktop linux machine first, removed all files (zImage and the .dtb files) from partition 2 (the fat32), then unmounted it and did a dd if=.img of=/dev/sdcardreader
<yates> it behaved as expected - uboot booted and reported a few things, then went into shock since the linux kernel wasn't present
<yates> what is this SPL thing?
<yates> is it possible that the chip would get hot when a gpio is configured for output and driving ground, or vice-versa?
<yates> is it possible that the chip would get hot when a gpio is configured for output, the output is logic high, and the output is driving ground, or vice-versa?
<yates> vpeter: thank you.
<yates> vpeter: so does SPL/uboot.imx mount the linux partition and then load /sdcard/linux/opt/images/Yocto/u-boot.img-sd to run the final u-boot?
<vpeter> SPL loads u-boot.img or there is only u-boot.imx
<vpeter> SPL/u-boot.img or u-boot.imx loads kernel and boot it. It doesn't really "mount" partition - just reads kernel file into ram and execute it.
<vpeter> Something like that - I'm not really technical in this.
<yates> vpeter: where does spl load boot.img from?
<vpeter> from some partition. Usually first one?
<yates> yeah, there is nothing named uboot there, just .dtb files and the zImage
<yates> does the imx6 internal boot rom code check the SD Detect signal when the boot config is set to boot from sdcard?
<yates> if so, then how doesn't that mean that the SD Detect signal must be muxed into a fixed, known GPIO?
<yates> s/how doesn't/doesn't/
<yates> vpeter: or did you mean, by "first partition," the 4MiB "partition"?
<vpeter> It depends how you look into this :)
<vpeter> For me first (1) partition is something which is really formatted.
<vpeter> This is image for LibreELEC: https://pastebin.com/V5G0i6Yr First
<vpeter> partition starts and 4MB.