Trying to get mainline kernel working on N1

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by mad_ady »

That's excellent news (fan)! I'll rebuild it and try it next week!

Regarding video encoders, last time I played with the 4.4 kernel ffmpeg supported only video decoding. I thought that maybe the soc didn't have encoding capability. Is the encoder v4l2 compatible (seems so)?

hominoid
Posts: 437
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 39 times
Been thanked: 124 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by hominoid »

I don't know about the capabilities of the silicon IP or the codecs but let me know how it goes when you get to trying 5.8-rc5. And yeah, having a working fan is excellent! :)

User avatar
rooted
Posts: 7911
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 233 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by rooted »

Wow that's great news, thanks for the update.

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by mad_ady »

@hominid - just for clarification - you're using the direct mainline kernel, no longer @tobetter's branch, right? I'll try to compile it too and see how it goes. :)

hominoid
Posts: 437
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 39 times
Been thanked: 124 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by hominoid »

mad_ady wrote:
Tue Jul 21, 2020 6:21 pm
@hominid - just for clarification - you're using the direct mainline kernel, no longer @tobetter's branch, right? I'll try to compile it too and see how it goes. :)
Yes, direct mainline kernel. I have compiled and run several versions(headless) of it already including 5.8-rc6 last night. I haven't seen any problems yet so far. I also recently setup a raid0 for testing on 2.5" 2gb seagates 5400rpm on kernel 5.7.8 if I remember correctly.

Code: Select all

hominoid@odroid-n1:~$ lsblk -o UUID,NAME,FSTYPE,SIZE,LABEL,MODEL
UUID                                 NAME         FSTYPE             SIZE LABEL       MODEL
aff63bf3-933d-52c7-be42-ae8a78faf911 sda          linux_raid_member  1.8T odroid-n1:0 ST2000LM007-1R8174
413b8314-25c4-4e4f-b356-aaabb2bd00fc └─md0        ext4               3.7T             
aff63bf3-933d-52c7-be42-ae8a78faf911 sdb          linux_raid_member  1.8T odroid-n1:0 ST2000LM007-1R8174
413b8314-25c4-4e4f-b356-aaabb2bd00fc └─md0        ext4               3.7T             
                                     mmcblk1                        29.1G             
a9a7bb11-3323-426e-9e7b-1e9dd07800c1 ├─mmcblk1p1  ext2               256M BOOT        
a977a8c4-0492-48d9-9876-8f53ac858a41 └─mmcblk1p2  ext4              28.9G rootfs      
                                     mmcblk1boot0                      4M             
                                     mmcblk1boot1                      4M             

Code: Select all

hominoid@odroid-n1:/archive$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
	Iozone: Performance Test of File I/O
	        Version $Revision: 3.489 $
		Compiled for 64 bit mode.
		Build: linux 

	Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
	             Al Slater, Scott Rhine, Mike Wisner, Ken Goss
	             Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
	             Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
	             Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
	             Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
	             Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
	             Vangel Bojaxhi, Ben England, Vikentsi Lapa,
	             Alexey Skidanov, Sudhir Kumar.

	Run began: Tue Jul 14 17:15:48 2020

	Include fsync in write timing
	O_DIRECT feature enabled
	Auto Mode
	File size set to 102400 kB
	Record Size 4 kB
	Record Size 16 kB
	Record Size 512 kB
	Record Size 1024 kB
	Record Size 16384 kB
	Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
	Output is in kBytes/sec
	Time Resolution = 0.000001 seconds.
	Processor cache size set to 1024 kBytes.
	Processor cache line size set to 32 bytes.
	File stride size set to 17 * record size.
                                                              random    random     bkwd    record    stride                                    
              kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
          102400       4    14657    15700    18147    19780     5330     2847                                                                
          102400      16    52575    58216    51761    73863    15356    12026                                                                
          102400     512   182393   186711   230043   237479    75404   141589                                                                
          102400    1024   189821   186742   224223   244256    98548   156136                                                                
          102400   16384   155943   171314   221525   232339   205939   162712                                                                

iozone test complete.
Not bad for older 5400rpm drives.
Last edited by hominoid on Tue Jul 21, 2020 10:26 pm, edited 2 times in total.

User avatar
tobetter
Posts: 5560
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 225 times
Been thanked: 652 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by tobetter »

hominoid wrote:
Tue Jul 21, 2020 10:13 pm
mad_ady wrote:
Tue Jul 21, 2020 6:21 pm
@hominid - just for clarification - you're using the direct mainline kernel, no longer @tobetter's branch, right? I'll try to compile it too and see how it goes. :)
Yes, direct mainline kernel. I have compiled and run several versions(headless) of it already including 5.8-rc6 last night. I haven't seen any problems yet so far.
Can you share your branch if possible? Let me try to see if I can merge it to my branch and release through my server. But........I have to find out where I put N1. :(

hominoid
Posts: 437
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 39 times
Been thanked: 124 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by hominoid »

tobetter wrote:
Tue Jul 21, 2020 10:17 pm

Can you share your branch if possible? Let me try to see if I can merge it to my branch and release through my server. But........I have to find out where I put N1. :(
I'm running un-patched directly from the archive https://git.kernel.org/torvalds/t/linux-5.8-rc6.tar.gz

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by mad_ady »

@tobetter Look for it. Thanks to its built-in sata it's worth more to some than the N2+! :)

@hominid I'm already compiling it, but it's slow because of -j2 and thermal throttling.... Hope to try it tomorrow

hominoid
Posts: 437
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 39 times
Been thanked: 124 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by hominoid »

For reference, with a fan and -j6 it takes about 60min.

User avatar
tobetter
Posts: 5560
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 225 times
Been thanked: 652 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by tobetter »

@moon.anand, can you shares the branch or patch for U-boot? Not able to find out odroid-n1_rk3399_defconfig. My eyes are painful. :D

hominoid
Posts: 437
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 39 times
Been thanked: 124 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by hominoid »

tobetter wrote:
Wed Jul 22, 2020 2:30 pm
@moon.anand, can you shares the branch or patch for U-boot? Not able to find out odroid-n1_rk3399_defconfig. My eyes are painful. :D
@tobetter, The patch that @moon.linux provided, which I used to compile mainline uboot, is located here and the compiled uboot I'm using is located here. It can be flashed using sudo dd if=u-boot-rockchip.bin of=/dev/mmcblk0 seek=64 FYI, The included dts has changed since that post.
These users thanked the author hominoid for the post:
tobetter (Wed Jul 22, 2020 10:56 pm)

moon.linux
Posts: 1189
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by moon.linux »

Sorry, I am completely going partial blind now a days, But I will try to enable SPI flash on N1 as well.

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by mad_ady »

Oh, sorry to hear that... Hope you get well soon!

User avatar
rooted
Posts: 7911
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 233 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by rooted »

moon.linux wrote:Sorry, I am completely going partial blind now a days, But I will try to enable SPI flash on N1 as well.
I hope it's something that can be slowed, stopped, or even reversed mate. Best wishes @moon.linux

moon.linux
Posts: 1189
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by moon.linux »

Sorry for misunderstanding of my comments, earlier I user to work without eye glasses, now I have to use them regularly for work. :ugeek:

User avatar
rooted
Posts: 7911
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 233 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by rooted »

moon.linux wrote:Sorry for misunderstanding of my comments, earlier I user to work without eye glasses, now I have to use them regularly for work. :ugeek:
That's much better than going blind ;)

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: Trying to get mainline kernel working on N1

Post by mad_ady »

Hey there... I'm running 5.8.0-rc5 as per @hominid's instructions and fan works just fine. System is stable too. But now, my IR blaster doesn't work. I managed to get it working on 5.7 as documented here: viewtopic.php?p=297849#p297849.
On closer inspection it seems the phandle for gpio1 has changed from 0x83 to 0x82, so my changes to the DTB for this kernel need to be:

Code: Select all

sudo fdtput -v -c rk3399-odroid-n1.dtb  /ir-tx
sudo fdtput -t s rk3399-odroid-n1.dtb  /ir-tx compatible "gpio-ir-tx"
sudo fdtput -t x rk3399-odroid-n1.dtb  /ir-tx "gpios" 0x82 0x01 0x0

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest