Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo on odroid N2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Fri Jul 05, 2019 4:39 am    Post subject: Reply with quote

erm67 wrote:
Quote:
cpu temperature gets reach to the trip point, dcritical, system will shut down.


That doesn't say anything about thermal throttling by reducing CPU clock frequency. Can odroid n2 reduce CPU clock frequency to prevent overheating?
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Fri Jul 05, 2019 9:26 pm    Post subject: Reply with quote

According to the datasheet there is an embedded cortex M3 a
Quote:
32-bit processor for highly deterministic real-time applications
that monitors the temperature and other stuff. It is something like the dreaded Intel Management Engine, an autonomous subsystem that is run at boot time, you cannot see and manages everything in the system. Most ARM systems has one of them, there is even a region of memory reserved for it in the dtb ....

According to the datasheet the embedded temperature sensor just stores temperature values in registers, generate IRQ if the temp is higher than a threshold, reset all subsystems if it gets too high. Things like throttling the CPU freq are handled by the embedded cortex-M3 processor that runs a proprietary, encrypted binary blob.
See also here.

But not only the CPU generates heat so maybe throttle down the CPU is not enough. I am still learning about this processor and SoC btw ;-) but it's too warm and I prefer to spend some time on the beach ...
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Sat Jul 06, 2019 12:30 am    Post subject: Reply with quote


  • Intel management engine can compromise privacy. Is it possible that odroid n2 sends your information to a remote server in the background?
  • Perhaps, the lowest CPU frequency is not low enough to prevent overheating with the ambient temperature at 45'C.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Sat Jul 06, 2019 10:25 pm    Post subject: Reply with quote

crocket wrote:

  • Intel management engine can compromise privacy. Is it possible that odroid n2 sends your information to a remote server in the background?
  • Perhaps, the lowest CPU frequency is not low enough to prevent overheating with the ambient temperature at 45'C.

nobody knows what that the code does it's encrypted ..... also the raspi uses a hidden core that runs an encrypted firmware ....

maybe it was the usb controller, kernel compile is IO intensive, who knows in any case it was my fault since the room temperature was really too high.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Tue Jul 09, 2019 11:19 pm    Post subject: Reply with quote

Does it make sense to replace a USB3 storage device with a network storage mount? At least, USB3 controller won't become hot.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Wed Jul 10, 2019 7:25 am    Post subject: Reply with quote

I am a big fan of iscsi, in fact I used network mounts on my old board, boot from sd an rootfs on iscsi it works perfectly as long as the Gbit ethernet is used only for iscsi, my old box had decent 300Mbit wifi and I used that setup for a couple of years without a problem.
root on nfs is a thing of the '80, good for testing and emergency but not as a stable solution. NDB wors as well but I found it a bit slower than a well deployed iscsi.
Of course the N2 doesn't have a second nic so you need a usb3 network adapter, wifi or gbit. Just make sure it is a native USB3 adapter, I had to return 2 USB3 Gbit adapers on ebay because they worked on Windows but not on linux.
The best and fastest use the AX88179 Chipset, the most common are rtl8152 or the newer rtl8153 and often do not work well with linux, when I complained the seller sent me from china an rtl8153 with the guarantee that it works well with linux and indeed it does. The AX88179 is a lot better however.

Don't worry about the heat now that temperatures cooled down a bit I have no problems, USB3 + UASP works perfectly; now the N2 bios can controls the speed of a pwm fan, it will only start to spin if the temperature is too high.
I bet there will be soon USB3 disks with a native UASP interface to avoid the latency due to scsi/SATA translation.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Wed Jul 10, 2019 1:56 pm    Post subject: Reply with quote

How did you compile kernel for odroid n2? The wiki says it needs linaro gcc. Does it actually require linaro gcc for u-boot and kernel?
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Wed Jul 10, 2019 4:30 pm    Post subject: Reply with quote

crocket wrote:
How did you compile kernel for odroid n2? The wiki says it needs linaro gcc. Does it actually require linaro gcc for u-boot and kernel?


I have not recompiled uboot and petitboot ... but the kernel compiles without problem with gentoo's GCC 9. I also patched the Makefile and added -march=native to the CFLAGS

Code:
--- Makefile    2019-06-17 21:35:42.000002198 +0200
+++ Makefile.new        2019-06-18 04:57:28.764002527 +0200
@@ -723,9 +723,9 @@
 KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
 ifdef CONFIG_PROFILE_ALL_BRANCHES
-KBUILD_CFLAGS  += -O2 $(call cc-disable-warning,maybe-uninitialized,)
+KBUILD_CFLAGS  += -O2 -march=armv8-a+crc+fp+simd+crypto -mcpu=cortex-a73.cortex-a53 -mtune=cortex-a73.cortex-a53 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 $(call cc-disable-warning,maybe-uninitialized,)
 else
-KBUILD_CFLAGS   += -O2
+KBUILD_CFLAGS   += -O2 -march=armv8-a+crc+fp+simd+crypto -mcpu=cortex-a73.cortex-a53 -mtune=cortex-a73.cortex-a53 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024
 endif
 endif
 

_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Thu Jul 11, 2019 5:47 am    Post subject: Reply with quote

Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Thu Jul 11, 2019 9:35 am    Post subject: Reply with quote

IIRC the h2 is twice as fast, but more expensive &Power hungry. For a desktop Is probably Better.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Thu Jul 11, 2019 10:30 am    Post subject: Reply with quote

erm67 wrote:
IIRC the h2 is twice as fast, but more expensive &Power hungry. For a desktop Is probably Better.


I guess odroid n2 is more suitable as a self-sufficient headless gentoo server, an emulation machine, and a media player since it has more powerful GPU than Odroid H2.
4GB RAM is enough to compile most packages except firefox, chromium, libreoffice, and so on.

For desktop usage, video playback and the amount of RAM are important. H2 can have more RAM for more browser tabs, but N2 has Advanced Video Engine Gen10 for fast video playback.

If Odroid N2 had 8~16GB RAM and an M.2/SATA slot, I could use it as a low-power lightweight desktop and an ARM64 build machine.

I want a self-sufficient headless gentoo server because qemu aarch64 chroot is really slow for compiling gentoo upgrades even though I have AMD FX-8300 and 32GB RAM. Cross distcc doesn't help much.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Wed Jul 17, 2019 8:57 pm    Post subject: Reply with quote

I got one of those 4 bay UASP enclosures now:
http://www.yottamaster.com/index.php?route=product/product&product_id=99
it has a JMS567 chipset fully compatible with linux I have now 3x1TB rotational disks and 1 SSD for the OS, the max BW I got is 320MB/s close to spec of the board (the SSD is faster but that's all the board can). USB3 is not that bad after all.

I really don't understand your compile time problems, now it is really fast ... do not underestimate webservers, PHP and mariadb are large packages and are updated frequently. I emerge --sync every few days ...

I also ordered a fan since I want to try and overclock it.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Wed Jul 17, 2019 11:04 pm    Post subject: Reply with quote

erm67 wrote:
I really don't understand your compile time problems, now it is really fast ... do not underestimate webservers, PHP and mariadb are large packages and are updated frequently. I emerge --sync every few days ...


4GB is enough for compiling gcc on tmpfs. It is not enough for compiling ghc on tmpfs although ghc ebuild is not ported to arm64, yet.
8GB is enough for a headless server that compiles ghc on tmpfs. 16GB is enough for a desktop computer that compiles chromium on tmpfs.
If /var/tmp is not mounted as tmpfs, upgrading a gentoo system every few days can wear HDD or SSD over time.

erm67 wrote:
I got one of those 4 bay UASP enclosures now:
http://www.yottamaster.com/index.php?route=product/product&product_id=99
it has a JMS567 chipset fully compatible with linux I have now 3x1TB rotational disks and 1 SSD for the OS, the max BW I got is 320MB/s close to spec of the board (the SSD is faster but that's all the board can). USB3 is not that bad after all.


Does Odroid N2 recognize every drive in the enclosure independently? Or, does the enclosure present them as one drive?
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Thu Jul 18, 2019 6:50 am    Post subject: Reply with quote

crocket wrote:

although ghc ebuild is not ported to arm64, yet.

Do you really believe that shit? That someone does something special to port stuff to gentoo arm64? They aren't even staffed enough for maintaining the existing ebuilds. The port is done upstream or by bigger distro, they just turn a flag sometimes at random :-) Try another distro and you'll see that everything is available.
elixir and ghc work perfectly on ARM64, I did run a pleroma instance for more than one year.

gentoo should really stop arch keywording stuff, they were never able to keep up with that it was clear already during the MIPS flame wars when ciaranm and the other MIPS freaks left ...
crocket wrote:

8GB is enough for a headless server that compiles ghc on tmpfs. 16GB is enough for a desktop computer that compiles chromium on tmpfs.
If /var/tmp is not mounted as tmpfs, upgrading a gentoo system every few days can wear HDD or SSD over time.

You should check your math, my hard disk still works after all those years, and frankly a 128GB SSD is so cheap now that you could also consider the few € for a new SSD every few years as maintenance expenses. Maybe it will last longer than you think.

erm67 wrote:

Does Odroid N2 recognize every drive in the enclosure independently? Or, does the enclosure present them as one drive?


It's SCSI, I remember in the late nineties I had a 4 disks SCSI enclosure connected to my sparcstation :-)

Well every disk has it's own LUN but that is part of the UAS(Protocol) and requires the uas module, so it boots from the first disk since the bios doesn't do UASP and the other disks appear later.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 454

PostPosted: Thu Jul 18, 2019 7:01 am    Post subject: Reply with quote

erm67 wrote:
Do you really believe that shit? That someone does something special to port stuff to gentoo arm64?


I tried to build dev-lang/ghc-8.6.5 with aarch64-unknown-linux-gnu-emerge, but it failed because ghc ebuild didn't depend on tinfo, curses, or ncurses.
Different CPU architectures may require different dependencies.

On arm64, ghcbootstrap use flag is needed for dev-lang/ghc. It seems people haven't tested ghcbootstrap use flag, yet.
On amd64, ghcbootstrap is not needed. ghcbootstrap use flag requires tinfo, curses, or ncurses. The use flag may require other dependencies, too.

I may port dev-lang/ghc to arm64 and submit the ported ebuild to crocket-overlay.

I want to run haskell programs on raspberry pi because haskell programs seem to use less memory than python programs. I want to conservatively use 1GB RAM.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Thu Jul 18, 2019 2:29 pm    Post subject: Reply with quote

well there is a binary release available @ haskel.org https://www.haskell.org/ghc/download_ghc_8_2_2.html
you might use it to bootstrap ghc.

I might try next week but for arm64, I make very long holidays :lol:

I also have a backup one year old ... but probably it's easier to install the binary from haskell.org and start over again.

BTW I totally agree about the arm64 overlay idea, but most stuff in ~amd64 works without changes on arm64 now, thanks to upstream, there is no need for an overlay to accept keywords.


EDIT ok I gave it a try, it works but it requires llvm 3.9 and ncurses 5; atm I have no llvm and ncurses6 installed, I mean it's easy you can make it :-)

I symlinked libtinfo.so.5 to libtinfo.so.6 for a quick try (maybe the lib isn't really required to bootstrap) and installed the binary release in /usr/local it works with a few warnings, but bootstrapping fails becaus llvm 3.9 is not found (it must be llvm 3.9).

UPDATE I successfully bootstrapped ghc but you need it compiled for a generic armv8 arch right? I compiled it for the N2 and probably it won't run on the raspi....
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 648

PostPosted: Sun Jan 05, 2020 10:53 pm    Post subject: Reply with quote

Greetings erm67, crocket, and everyone,

I now have up to date gentoo running on a new odroid N2.

I used the wiki page as a rough guide, utilizing an emmc module and the qemu chroot method on a x86_64 machine.
https://forums.gentoo.org/viewtopic-t-1098334

It took a while to get uboot to be happy with my kernel (hardkernel) and initrd. The uart module came in handy.

I'm wondering what to do with it next :D probably a light portable workstation.

Does anyone know what's the best VIDEO_CARDS setting?

Cheers
russK
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Mon Jan 06, 2020 5:38 pm    Post subject: Reply with quote

I am using mainline kernel now, but wayland and panfrost still need some work to make it usable as a desktop so maybe stay with their kernel if you need graphics :-) BTW the N2 (like most arm boards) doesn't support a HW accelerated cursor, Android and set top boxes doesn't need it, and this is a big problem since it means that HW acceleration cannot be used in gnome and other DE since linux requires a HW accelerated cursor. There is a thread in the HK forums for mainline kernel, until this and a few other problems will be solved it is unlikely that it can be used as a light desktop.
I use 'hdmitx off' in uboot since it is a headless server :-) and I emerge natively on a SSD connected to the USB3 port, so I cannot help with crosscompilation. Steal some recipes from openwrt/lede they are the crosscompilation masters ....
Funny however to use a light desktop while your heavy desktop computer crosscompiles the os of the light desktop ....

I am trying to port lakka to use it as a gaming emulator it should be powerful enough. It's binary compatible with the S912 ..


I recently got a 5246 kit from ebay and soldered the 5264 female connector housing on the pcb of my old S912 tvbox, I than created a male<->male crossover cable and connected the serial on the N2 with the serial on the S912. So finally I can now fiddle with uboot remotely, the board is not near my PC but close to the HIFI under the TV in my living room ... the only remaining problem is that I have to run very fast to my desktop if I want to interrupt the boot sequence with the space bar and enter uboot after a hard reset.

Networking on uboot for the N2 works perfectly but uboot netconsole is not enabled in the defconfig (it never is) but can be manually enabled, I hope to find some time to recompile uboot for the N2 with netconsole, with my new setup I think it will become easier for me.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum