buzzmarshall has quit [Remote host closed the connection]
asdf28 has joined #linux-amlogic
lvrp16 has quit [Ping timeout: 260 seconds]
lvrp16 has joined #linux-amlogic
drieschel has joined #linux-amlogic
drieschel has quit [Client Quit]
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-amlogic
Necrosporus has joined #linux-amlogic
<Necrosporus>
Hi there. I have discovered that my device based on AMLOGIC MESON3 8726M SKT SH writes this messages when SD card is inserted: Hit any key to stop autoboot: 0 // auto upgrade from sdcard... // command: mmc read 0 82000000 400 200 // MMC read: dev # 0, addr # 400, byte count 200 ... 1 blocks read: OK
<Necrosporus>
This suggest that I can write something to the third 512-byte sector of an SD card to make it bootable. The question is what it could be?
ldevulder_ is now known as ldevulder
trem has joined #linux-amlogic
cmeerw has joined #linux-amlogic
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #linux-amlogic
efqw has quit [Quit: Connection closed for inactivity]
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
Barada has quit [Client Quit]
<chewitt>
signed u-boot
<chewitt>
the issue you have is, you don't have the u-boot sources for your box/board
<chewitt>
and mainline u-boot doesn't support anything below Meson 9
<chewitt>
the box boots from nand/emmc first, always, if there is signed u-boot there
<chewitt>
it will also boot from an SD card, but to force this and test whatever u-boot things you can find in github etc. to experiment with, you'll have to wipe the emmc
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 265 seconds]
camus is now known as kaspter
asdf28 has quit [Ping timeout: 264 seconds]
asdf28 has joined #linux-amlogic
<asdf28>
chewitt: a few weeks ago, you gave me a patch for adding p212 audio support to linux
<asdf28>
i tried it yesterday, it works great. thanks!
<Necrosporus>
chewitt, I have SPI NOR and NAND chips there
<Necrosporus>
Also I have had wiped SPI nor by mistake and it did indeed run u-boot from begginning of an SD card
<Necrosporus>
chewitt, regarding u-boot sources, how do you know I don't have it? I mean maybe they are downloadable from some vendor FTP, I didn't look for them yet though
<Necrosporus>
chewitt, I can probably chainload u-boot from external card with something like fatload and bootm
sputnik_ has quit [Ping timeout: 265 seconds]
<Necrosporus>
chewitt, but maybe I can just change signature of u-boot or whatever?
<Necrosporus>
Though I did achieve what I wanted by changing bootcmd env variable and running saveenv, then the device checks for SD card and if it's inserted, runs the kernel from it
<Necrosporus>
if not, it runs from nand
<Necrosporus>
I have found a similar board booting with same message: MyGica ATV510B Android boot https://pastebin.com/raw/9ZBbt8AX (made in 2013, not my paste)
<Necrosporus>
[ 3.710547] Creating 2 MTD partitions on "apollospi:0":