ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
vstehle has quit [Ping timeout: 258 seconds]
stikonas has quit [Remote host closed the connection]
levd has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 245 seconds]
drrty has quit [Quit: Leaving]
ifbizo has joined #linux-rockchip
default__ has joined #linux-rockchip
ldevulder_ has quit [Ping timeout: 258 seconds]
adjtm has quit [Quit: Leaving]
buzzmarshall has quit [Remote host closed the connection]
leming_ has joined #linux-rockchip
leming has quit [Read error: Connection reset by peer]
leming_ is now known as leming
Putti has joined #linux-rockchip
Putti has quit [Ping timeout: 245 seconds]
vstehle has joined #linux-rockchip
chewitt has quit [Read error: Connection reset by peer]
default__ has quit [Read error: Connection reset by peer]
default__ has joined #linux-rockchip
lvrp16 has quit [Ping timeout: 252 seconds]
lvrp16 has joined #linux-rockchip
default__ is now known as ldevulder
yann has quit [Ping timeout: 245 seconds]
MoeIcenowy has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
MoeIcenowy has joined #linux-rockchip
Kelsar has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ganbold has quit [Quit: Leaving...]
Kelsar has joined #linux-rockchip
ganbold has joined #linux-rockchip
rompelstompel has joined #linux-rockchip
ykhan_ has joined #linux-rockchip
<ykhan_> Hello all. I am trying to boot rockchip linux v3.10.104 on a custom rk3288 based board. The rootfs is on eMMC and parition format is GPT. I am unable to load the rootfs. I have tried passing the mtdparts=rk29xxnand:<partition-info> in the kernel command line and can see various mmcblkp* partition files getting created in the kernel boot log but the kernel fails to detect the rootfs and crashes at unable to mount root failure.
<EmilKarlson> if the exact error is rootfs, then you'll need to enable appropriate filesystem support
<EmilKarlson> people here mostly favour more upstreamish kernels
<inode> ykhan_: put the kernel messages in a paste bin so we can all see what you're seeing
<ykhan_> Thank you, the filesystem support is enabled. I will pastebin the log.
afaerber has joined #linux-rockchip
<ykhan_> Here's the pastebin. Now I am loading the rootfs from the ext4 formatted SD card successfully. But I am still unable to mount GPT formatted eMMC partitions using mount utility. This indicates that there is some problem with how these partitions are being created by passing the mtdparts=rk29xxnand: command line parameter. The pastebin contains logs of both SD and eMMC partitions.
<EmilKarlson> your log is truncated at the end, I believe=
<EmilKarlson> you seem to be having 5 partitions 1-5, and you are mounting partition 7?
<ykhan_> You are right, sorry my bad. I have tried a different kernel command line and it is passing two extra partitions reserved1 and reserved2. I don't think it should be causing the problem as the offset and size of the rootfs would stay the same. But still, let me send the pastebin of original command line..
<inode> i think you have a mismatch between the "mtdparts=rk29xxnand:..." definition and the GPT you've defined on mmcblk0
<inode> i haven't looked at rockchip-flavoured 3.x sources, but i gathered from looking at 4.x sources that the rk partitions were added purely on what "mtdparts=rk29xxnand:..." had defined on the command line
<inode> and ignored the GPT entirely
<inode> so if you have 7 partitions declared,, you'd get 7 partitions recognized (line 721) and a device nodes created for each (lines 1125 - 1135)
<inode> iirc, there was also something about the "mtdparts=rk29xxnand:..." definitions having a 0x2000 offset due to LBA
nsaenz has joined #linux-rockchip
<inode> something like, the command line says u-boot partition is at 0x2000 but it's actually at offset 0x4000
nsaenz has quit [Remote host closed the connection]
<ykhan_> inode: I think you are pointing in the right direction. I also feel this has something related to mtdparts=rk29xxnand option. Nevertheless, here is the correct command line that matches the GPT table but still not working. https://pastebin.com/B4y9D90i
<inode> ykhan_: i'd try declaring the mtdparts=rk29xxnand:... offsets as 0x2000 less than what you've declared them as in your gpt
<ykhan_> inode: I know there is an offset of 0x2000 while writing to flash in loader mode vs maskrom mode. I always flash in the maskrom mode so I assume the offsets must be correct. But still worth a shot, thanks for the suggestion
<inode> a possible means to confirm this suspicion would be to read a chunk of data from the mmc device node (ie. mmcblk0) from the offset you've defined in your gpt
<inode> and then verify if the chunk in fact begins with a valid partition header
<ykhan_> inode: In fact, mount with specifying offset on the root mmc node works so that means the offsets must be correct. Let me show you.
jaganteki has joined #linux-rockchip
<inode> ykhan_: ok
<inode> if you got a panic and your root= parameter value was sane, have you tried including rootwait on the kernel command line?
<ykhan_> inode: No I haven't tried that option. Will give it a go.
<ykhan_> inode: I was also wondering if there is any proper way of verifying the content of partition device files (/dev/mmcblk0p5) to see if it points to the correct sectors on the block device. If rootwait doesn't work, I might try creating a test binary based on libblkid to verify the filesystem contents. Any better suggestion is highly welcome.
<inode> ykhan_: you could look at the PHY-SEC and LOG-SEC values listed for each partition with lsblk -O if that helps
<inode> sorry ignore those columns, they are sizes not offsets
<inode> i guess another crude option might be to compare something like dd if=/dev/mmcblk0 of=x bs=512 count=8 skip=${PART_OFFSET} vs dd if=/dev/mmcblk0p${PART_NUM} of=y bs=512 count=8
<inode> does hash(x) == hash(y) ?
<inode> *shrug*
<ykhan_> inode: Great idea, I was not sure if the partition device points directly to the root node plus partition offset. Thank you, I will try this.
levd has quit [Quit: Connection closed for inactivity]
Putti has joined #linux-rockchip
s_frit has joined #linux-rockchip
jaganteki has quit [Ping timeout: 256 seconds]
s_frit has quit []
s_frit has joined #linux-rockchip
JohnDoe_71Rus has joined #linux-rockchip
Putti has quit [Remote host closed the connection]
rich0 has quit [Quit: rich0]
Putti has joined #linux-rockchip
rich0 has joined #linux-rockchip
vicencb has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 245 seconds]
Greyztar- has joined #linux-rockchip
Greyztar has quit [Ping timeout: 256 seconds]
field^Zzz1 has joined #linux-rockchip
rompelstompel has left #linux-rockchip ["http://quassel-irc.org - Chat comfortably. Anywhere."]
vicencb has quit [Quit: Leaving.]
vicencb has joined #linux-rockchip
vagrantc has joined #linux-rockchip
adjtm has joined #linux-rockchip
cyteen has joined #linux-rockchip
mrueg has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mrueg has joined #linux-rockchip
ayaka has quit [Ping timeout: 268 seconds]
ayaka has joined #linux-rockchip
JaceAlvejetti has joined #linux-rockchip
field^Zzz1 has quit [Ping timeout: 268 seconds]
amstan_ has joined #linux-rockchip
Greyztar- is now known as Greyztar
amstan has quit [Ping timeout: 268 seconds]
putti_ has joined #linux-rockchip
Putti has quit [Remote host closed the connection]
amstan has joined #linux-rockchip
amstan_ has quit [Ping timeout: 246 seconds]
yann has joined #linux-rockchip
ayaka has quit [Ping timeout: 246 seconds]
ayaka has joined #linux-rockchip
putti_ is now known as Putti
drrty has joined #linux-rockchip
stikonas has joined #linux-rockchip
nsaenz has joined #linux-rockchip
nsaenz has quit [Client Quit]
nsaenz has joined #linux-rockchip
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
ganbold has quit [Ping timeout: 245 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Putti has quit [Remote host closed the connection]
buzzmarshall has joined #linux-rockchip
Putti has joined #linux-rockchip
Putti has quit [Ping timeout: 245 seconds]
urjaman has quit [Quit: WeeChat 2.4]
urjaman has joined #linux-rockchip
field^Zzz1 has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
gnufan_home has joined #linux-rockchip
ezequielg has quit [Ping timeout: 258 seconds]
ezequielg has joined #linux-rockchip
drrty has quit [Quit: Leaving]
cyteen has quit [Read error: Connection reset by peer]
cyteen has joined #linux-rockchip
field^Zzz1 has quit [Ping timeout: 244 seconds]
vicencb has quit [Quit: Leaving.]
vagrantc has quit [Quit: leaving]