Got the fantastic N2L

Post Reply
User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Got the fantastic N2L

Post by joerg »

Sadly I can't play with it due to my work I have to leave to far away customer... :x
photo_2022-11-21_11-21-31.jpg
photo_2022-11-21_11-21-31.jpg (276.71 KiB) Viewed 271 times
These users thanked the author joerg for the post (total 3):
tobetter (Mon Nov 21, 2022 7:35 pm) • AreaScout (Tue Nov 22, 2022 10:48 pm) • zyssai (Wed Nov 23, 2022 6:49 am)

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

<off topic>
Luckily my boss decided to send another guy to the customer. So I can start playing...
This is the sour pill of 24/7 on-call service. One has to be ready to leave home in every moment.
</off topic>

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

Using ubuntu minimal:
user odroid does not exist or the user entry does not contain all the required fields
But root is there. I can log in.

User avatar
mctom
Posts: 2255
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1, H3+, SP3, Vu8M
Location: Gdansk, Poland
Has thanked: 280 times
Been thanked: 368 times
Contact:

Re: Got the fantastic N2L

Post by mctom »

Awesome! Mine got stuck in DHL clearance hell. :(
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

Yes, this happened to me with the M1. Now I was very surprised that they handed it out today without any question for customs clearance. First they send to me it will be the 24., but in the morning I got message that it will be today...
With the M1 I had to speak two time with dhl customs office and explain that it is a development sample, but it was declared well from Hardkernel.

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

Here is how to connect with wifi dongle at shell (for the lazy ones that don't want to search it in www):
sudo nmcli dev wifi connect <ssid> password xyzxyzxyzxyzxyz
These users thanked the author joerg for the post:
L67GS (Fri Nov 25, 2022 1:23 am)

User avatar
mctom
Posts: 2255
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1, H3+, SP3, Vu8M
Location: Gdansk, Poland
Has thanked: 280 times
Been thanked: 368 times
Contact:

Re: Got the fantastic N2L

Post by mctom »

you could also use convenient nmtui. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

I try to use avrdude with linuxspi programmer. But I stuck now with gpiod.
How can I know which line is what pin at 40p header?

Code: Select all

sudo gpioinfo
gpiochip0 - 16 lines:
	line   0:      unnamed       unused   input  active-high 
	line   1:      unnamed       unused   input  active-high 
	line   2:      unnamed  "line_mute"  output  active-high [used]
	line   3:      unnamed       unused   input  active-high 
	line   4:      unnamed       unused   input  active-high 
	line   5:      unnamed       unused   input  active-high 
	line   6:      unnamed       unused   input  active-high 
	line   7:      unnamed       unused   input  active-high 
	line   8:      unnamed       unused   input  active-high 
	line   9:      unnamed      "amlsd"  output  active-high [used]
	line  10:      unnamed        "pwm"  output  active-high [used]
	line  11:      unnamed          "?"  output  active-high [used]
	line  12:      unnamed       unused   input  active-high 
	line  13:      unnamed       unused   input  active-high 
	line  14:      unnamed       unused   input  active-high 
	line  15:      unnamed       unused   input  active-high 
gpiochip1 - 86 lines:
	line   0:      unnamed       unused   input  active-high 
	line   1:      unnamed       unused   input  active-high 
	line   2:      unnamed       unused   input  active-high 
	line   3:      unnamed       unused   input  active-high 
	line   4:      unnamed       unused   input  active-high 
	line   5:      unnamed       unused   input  active-high 
	line   6:      unnamed       unused   input  active-high 
	line   7:      unnamed       unused   input  active-high 
	line   8:      unnamed       unused   input  active-high 
	line   9:      unnamed       unused   input  active-high 
	line  10:      unnamed       unused   input  active-high 
	line  11:      unnamed       unused   input  active-high 
	line  12:      unnamed       unused   input  active-high 
	line  13:      unnamed       unused   input  active-high 
	line  14:      unnamed       unused   input  active-high 
	line  15:      unnamed       unused   input  active-high 
	line  16:      unnamed       unused   input  active-high 
	line  17:      unnamed       unused   input  active-high 
	line  18:      unnamed       unused   input  active-high 
	line  19:      unnamed       unused   input  active-high 
	line  20:      unnamed       unused   input  active-high 
	line  21:      unnamed       unused   input  active-high 
	line  22:      unnamed       unused   input  active-high 
	line  23:      unnamed "ffe09080.usb3phy" output active-high [used]
	line  24:      unnamed       unused   input  active-high 
	line  25:      unnamed       unused   input  active-high 
	line  26:      unnamed       unused   input  active-high 
	line  27:      unnamed       unused   input  active-high 
	line  28:      unnamed       unused   input  active-high 
	line  29:      unnamed       unused  output  active-high 
	line  30:      unnamed       unused   input  active-high 
	line  31:      unnamed       unused   input  active-high 
	line  32:      unnamed       unused   input  active-high 
	line  33:      unnamed       unused   input  active-high 
	line  34:      unnamed       unused   input  active-high 
	line  35:      unnamed       unused   input  active-high 
	line  36:      unnamed       unused   input  active-high 
	line  37:      unnamed       unused   input  active-high 
	line  38:      unnamed      "amlsd"  output  active-high [used]
	line  39:      unnamed       unused   input  active-high 
	line  40:      unnamed       unused   input  active-high 
	line  41:      unnamed       unused   input  active-high 
	line  42:      unnamed       unused   input  active-high 
	line  43:      unnamed       unused   input  active-high 
	line  44:      unnamed       unused   input  active-high 
	line  45:      unnamed       unused   input  active-high 
	line  46:      unnamed       unused   input  active-high 
	line  47:      unnamed       unused   input  active-high 
	line  48:      unnamed      "amlsd"   input  active-high [used]
	line  49:      unnamed       unused   input  active-high 
	line  50:      unnamed       unused   input  active-high 
	line  51:      unnamed       unused   input  active-high 
	line  52:      unnamed       unused   input  active-high 
	line  53:      unnamed       unused   input  active-high 
	line  54:      unnamed       unused   input  active-high 
	line  55:      unnamed       unused   input  active-high 
	line  56:      unnamed       unused   input  active-high 
	line  57:      unnamed       unused   input  active-high 
	line  58:      unnamed       unused   input  active-high 
	line  59:      unnamed       unused   input  active-high 
	line  60:      unnamed       unused   input  active-high 
	line  61:      unnamed       unused   input  active-high 
	line  62:      unnamed       unused   input  active-high 
	line  63:      unnamed       unused   input  active-high 
	line  64:      unnamed       unused   input  active-high 
	line  65:      unnamed       unused   input  active-high 
	line  66:      unnamed       unused   input  active-high 
	line  67:      unnamed       unused   input  active-high 
	line  68:      unnamed       unused   input  active-high 
	line  69:      unnamed       unused   input  active-high 
	line  70:      unnamed       unused   input  active-high 
	line  71:      unnamed       unused   input  active-high 
	line  72:      unnamed       unused   input  active-high 
	line  73:      unnamed       unused   input  active-high 
	line  74:      unnamed       unused   input  active-high 
	line  75:      unnamed       unused   input  active-high 
	line  76:      unnamed     "spi0.0"  output  active-high [used]
	line  77:      unnamed       unused   input  active-high 
	line  78:      unnamed       unused   input  active-high 
	line  79:      unnamed       unused   input  active-high 
	line  80:      unnamed       unused   input  active-high 
	line  81:      unnamed       unused   input  active-high 
	line  82:      unnamed       unused   input  active-high 
	line  83:      unnamed       unused   input  active-high 
	line  84:      unnamed       unused   input  active-high 
	line  85:      unnamed       unused   input  active-high 
I tried line 67 and wonder, with gpio readall I found that it is mapped to pin 18. :o

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

With this setting for linuxspi in avrdude conf it works :D
/usr/local/etc/avrdude.conf

Code: Select all

#
# PROGRAMMER DEFINITIONS
#

#------------------------------------------------------------
# linuxspi
#------------------------------------------------------------

programmer
  id = "linuxspi";
  desc = "Use Linux SPI device in /dev/spidev*";
  type = "linuxspi";
  reset = 67;
  baudrate=1000000;
;
Result:

Code: Select all

sudo avrdude -c linuxspi -p m328p -P /dev/spidev0.0:/dev/gpiochip1 -v -x disable_no_cs -e -U flash:w:atmega328p_test.hex

avrdude: Version 7.0-20221121 (461d75b)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /usr/local/etc/avrdude.conf
         User configuration file is /root/.avrduderc
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/spidev0.0:/dev/gpiochip1
         Using Programmer              : linuxspi
avrdude linuxspi_open() warning: obsolete use of -b <clock> option for bit clock; use -B <clock>
avrdude: input file atmega328p_test.hex auto detected as Intel Hex
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash                  65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00

         Programmer Type : linuxspi
         Description     : Use Linux SPI device in /dev/spidev*

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)
erasing chip
avrdude: reading input file atmega328p_test.hex for flash
         with 11852 bytes in 1 section within [0, 0x2e4b]
         using 93 pages and 52 pad bytes
avrdude: writing 11852 bytes flash ...

Writing | ################################################## | 100% 1.24 s 

avrdude: 11852 bytes of flash written
avrdude: verifying flash memory against atmega328p_test.hex

Reading | ################################################## | 100% 0.79 s 

avrdude: 11852 bytes of flash verified

avrdude done.  Thank you.

With lower baudrate it fails!
Compiled avrdude 7.0 from github.
With ubuntu 22.04 is deliverd avrdude 6.3 and this version doesn't have linuxspi.

User avatar
mctom
Posts: 2255
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1, H3+, SP3, Vu8M
Location: Gdansk, Poland
Has thanked: 280 times
Been thanked: 368 times
Contact:

Re: Got the fantastic N2L

Post by mctom »

Good question, in M1 they are labeled.

Code: Select all

mctom@odroid1:~$ sudo gpioinfo
gpiochip0 - 32 lines:
	line   0:      unnamed       unused   input  active-high 
	line   1:      unnamed       unused   input  active-high 
	line   2:      unnamed       unused   input  active-high 
	line   3:      unnamed       unused   input  active-high 
	line   4:      unnamed       unused   input  active-high 
	line   5:      unnamed "vcc5v0_otg"  output  active-high [used]
	line   6:      unnamed "vcc5v0_host" output active-high [used]
	line   7:      unnamed       unused   input  active-high 
	line   8:      unnamed "Headphone detection" input active-high [used]
	line   9:      unnamed       unused   input  active-high 
	line  10:      unnamed       unused   input  active-high 
	line  11:     "PIN_28"       unused   input  active-high 
	line  12:     "PIN_27"       unused   input  active-high 
	line  13:     "PIN_33"       unused   input  active-high 
	line  14:      "PIN_7"       unused   input  active-high 
	line  15:      unnamed       "work"  output  active-high [used]
	line  16:     "PIN_11"       unused   input  active-high 
	line  17:     "PIN_13"       unused   input  active-high 
But if you identified that line 67 is pin 18, and we know pin 18 has export number #477 (https://wiki.odroid.com/odroid-n2l/hard ... connectors)
Then it is safe to assume:
- pin 27 - line 64 (collides with I2C1)
- pin 28 - line 65 (collides with I2C1)
- pin 16 - line 66
- pin 18 - line 67
- pin 22 - line 68
- pin 11 - line 69
- pin 13 - line 70

and so on.
I can't think of a better way right now, but should be enough to test avrdude. Hope it actually works.

What does avrdude say when you try lower baudrate?
in tle output that you pasted it said it doesn't like the obsolete -b parameter.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

I got this conf from somewhere in the web and changed reset to line 67.
There was baudrate 200000 and the error was:

Code: Select all

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x949494
avrdude main() error: expected signature for ATmega328P is 1E 95 0F
        double check chip or use -F to override this check
It means that it reads garbage...
Due to the -b, I saw that, but as it is working, I didn't looked deeper into it. As you see, I don't give this switch at the command line...
But I could open an issue on their github.

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

And here another photo of the setup with one of my just baked CAN 8xInput board with ATMega328P and MCP2515.
photo_2022-11-21_14-35-29.jpg
photo_2022-11-21_14-35-29.jpg (339.34 KiB) Viewed 231 times
These users thanked the author joerg for the post:
AreaScout (Tue Nov 22, 2022 10:49 pm)

User avatar
mctom
Posts: 2255
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1, H3+, SP3, Vu8M
Location: Gdansk, Poland
Has thanked: 280 times
Been thanked: 368 times
Contact:

Re: Got the fantastic N2L

Post by mctom »

joerg wrote:
Mon Nov 21, 2022 10:30 pm
It means that it reads garbage...
Due to the -b, I saw that, but as it is working, I didn't looked deeper into it. As you see, I don't give this switch at the command line...
But I could open an issue on their github.
Yes, when it's complaining about -b parameter it probably means baudrate in config file. But if it works, let's not fix it. :)

When I get my N2L I'll program FPGA with it, also via SPI. And do a pin toggle test, of course!
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

Trying now some network adapters (damn I can't find the 5A I got from Hardkernel once...I had it in my hands last days).
I have very bad performance with this one: 0bda:818b Realtek Semiconductor Corp. RTL8192EU 802.11b/g/n WLAN Adapter
Only 7-8MBits/sec and drop outs at the ssh terminal.

This one is not working at all: 7392:b811 Edimax Technology Co., Ltd Edimax N150 Adapter
It reports 'unsupported device'

The next one usb to eth adapter is just working: 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter (haha fast: 100M)

User avatar
mad_ady
Posts: 10956
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 996 times
Contact:

Re: Got the fantastic N2L

Post by mad_ady »

For wifi, search how to disable power-saving mode in Network-Manager.
https://gist.github.com/jcberthon/ea8cf ... 5344bc8b55
These users thanked the author mad_ady for the post:
joerg (Tue Nov 22, 2022 3:39 am)

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 331 times
Contact:

Re: Got the fantastic N2L

Post by joerg »

It helps to set mode to 2.
But the transfer rate is still poor with the 0bda:818b , it's a no name.

phaseshifter
Posts: 3784
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,n2+2G and n2 4G
cloudshell I and shell II
N-1,,N-2,...other odroid acc`s as well..vu7 etc..all sorts of sbc`s these days
Has thanked: 69 times
Been thanked: 52 times
Contact:

Re: Got the fantastic N2L

Post by phaseshifter »

well i use a usb hub with an Ethernet socket it`s for thew most part a kodi box i started with the minial image and without any repo`s or ppa`s just commands on the cCLI..i added the tall blue earlier it ran the fan under i am guessing medium load i dunno really thougt i`d ad my 20 cents worth i hope the usb stays stable enough dont think i will worry about the bios patch its working with hdmi audio so really a neat little unit ..eth port would be nice though only down side 4 me i hope somebody does a core elec for it given its still a 9 series chip it has a nice video engine as far as i can tell i have it clocked to max just using a greeter screen to login to 19.4 kodi took me a few hours ..im getting old i guess..
Attachments
20221122_042527.jpg
20221122_042527.jpg (288.77 KiB) Viewed 181 times
necessity the mother of all creation and invention..!!!..check out the world ...long live rock and roll.....

L67GS
Posts: 908
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, M1 8GB, C1+, (3) C0's, H3+, N2L 4GB, and a whole big pile of accessories, VU7A Plus,, MIPI-CSI Camera Kit, etc....
Location: Great Lakes Region, U.S.A
Has thanked: 268 times
Been thanked: 114 times
Contact:

Re: Got the fantastic N2L

Post by L67GS »

I just booted mine, haven't installed the minimal image yet.
GUI image: 27 seconds from power to login
8 seconds from login to Desktop

I wish it wasn't a holiday so I could play more....

phaseshifter
Posts: 3784
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,n2+2G and n2 4G
cloudshell I and shell II
N-1,,N-2,...other odroid acc`s as well..vu7 etc..all sorts of sbc`s these days
Has thanked: 69 times
Been thanked: 52 times
Contact:

Re: Got the fantastic N2L

Post by phaseshifter »

i have a working kodi but its on a 16 gig sd-card dont know where to upload it too
necessity the mother of all creation and invention..!!!..check out the world ...long live rock and roll.....

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 3 guests