[Question] How to update kernel

Moderators: odroid, mdrjr

[Question] How to update kernel

Unread postby joerg » Tue Mar 27, 2018 8:59 pm

How can be flashed the kernel to N1 Android?
On other Rockchip sbc this can be done by rkflashtool, but this method needs an otg port for it. Is there existing other method for N1?
E.g. can it be done by copying with dd direct to the emmc?
joerg
 
Posts: 795
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: [Question] How to update kernel

Unread postby Luke.go » Wed Mar 28, 2018 9:29 am

Hi there!
Yes. you can copy the Image file with dd. :)
Code: Select all
sudo dd if=Image of=/dev/<media_node> seek=33800 (bs=512, it is optional)


Also, you can flash the dtb file by dd. :)
Code: Select all
sudo dd if=rk3399-odroidn1-rev0.dtb of=/dev/<media_node> (conv=fsync bs=512) seek=32276


seek address are based it -> ond https://wiki.odroid.com/odroid-n1/softw ... tion_table
Luke.go
 
Posts: 220
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: [Question] How to update kernel

Unread postby joerg » Fri Mar 30, 2018 7:29 pm

Thank you Luke.go, it works. :)
joerg
 
Posts: 795
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: [Question] How to update kernel

Unread postby joerg » Sat Mar 31, 2018 12:57 am

I try to to change the dtb, but it doesn't have any effect.
For instance I changed the trigger for the blue led to mmc0 and wrote withh dd to the sdcard. But after rebooting the trigger is still heartbeat.
I have the same with the gpiomem driver, where I want to correct the addresses due to the gpio4 bus error. But still it has the same addresses as before.
joerg
 
Posts: 795
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: [Question] How to update kernel

Unread postby Luke.go » Wed Apr 04, 2018 11:33 am

In dmesg, you can check gpiomem reg address value like this.
Code: Select all
[    0.835196] gpiomem-rock ff820000.gpiomem: Initialised: GPIO register area is 2
[    0.835372] gpiomem-rock ff820000.gpiomem: Initialised: Registers at 0xff820000
[    0.835387] gpiomem-rock ff820000.gpiomem: Initialised: Registers at 0xff780000


as you can see, I edit the address and that value is applied..
But, you maybe not want this reply.. isn't it? :)
Luke.go
 
Posts: 220
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: [Question] How to update kernel

Unread postby joerg » Wed Apr 04, 2018 2:50 pm

But, any reply is welcome. :)
It is like that I changed things in devicetree on the kernel inside the Android source tree. Then I compiled it. I checked also with fdtget, if my changes are there:
Code: Select all
fdtget out/target/product/odroidn1/updatepackage/rk3399-odroidn1-rev0.dtb /gpiomem reg -t x
0 ff720000 0 78000 0 ff320000 0 10000

After write of this dtb to sdcard, I see in dmesg the old addresses as before, not the one I changed.
I can't show now, as I use the N1 as NAS at the moment. Only from time to time I can take the N1 and boot Android.
BTW, I tried with the updatepackage, and the new devicetree is there, but it has no effect due to the bus error on GPIO4.
So, I think I have done something wrong by dd the dtb to the sd.
joerg
 
Posts: 795
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: [Question] How to update kernel

Unread postby Luke.go » Wed Apr 04, 2018 3:08 pm

Oh, I compiled dtb files on <android_root>/kernel . and get dtb files from <android_root>/kernel/arch/arm64/boot/dts/rockchip/

Please check building date of the dtb files in the out/target/~~~/updatepackages/~.dtb. :)
Luke.go
 
Posts: 220
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest