elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #linux-amlogic
elastic_dog has quit [Ping timeout: 244 seconds]
camus has quit [Ping timeout: 264 seconds]
camus has joined #linux-amlogic
sputnik has quit [Ping timeout: 272 seconds]
GNUtoo has quit [Quit: leaving]
GNUtoo has joined #linux-amlogic
GNUtoo has quit [Quit: leaving]
GNUtoo has joined #linux-amlogic
GNUtoo has quit [Quit: leaving]
GNUtoo has joined #linux-amlogic
elastic_dog has joined #linux-amlogic
Tenkawa has joined #linux-amlogic
camus has quit [Remote host closed the connection]
camus has joined #linux-amlogic
f11f12 has quit [Quit: Leaving]
cmeerw has joined #linux-amlogic
camus has quit [Ping timeout: 265 seconds]
elastic_dog has quit [Ping timeout: 265 seconds]
sputnik has joined #linux-amlogic
camus has joined #linux-amlogic
elastic_dog has joined #linux-amlogic
camus has quit [Ping timeout: 240 seconds]
camus has joined #linux-amlogic
sputnik has quit [Ping timeout: 240 seconds]
Tenkawa has quit [Quit: Leaving.]
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
c0rnelius has quit [Ping timeout: 244 seconds]
c0rnelius has joined #linux-amlogic
c0rnelius has quit [Changing host]
c0rnelius has joined #linux-amlogic
c0rnelius has quit [Client Quit]
<Las[m]>
On http://linux-meson.com/doku.php it says SPI (CC) is supported on the S922X, does this mean I can write to SPI from within Linux?
<xdarklight>
Las[m]: haven't tried it myself but yes, that should work
Tenkawa has joined #linux-amlogic
<Las[m]>
xdarklight: Do you have any tips for what to search for to find out how to do it?
<Tenkawa>
Las[m]: what are you trying to do?
<Las[m]>
I just want to write to SPI
<Las[m]>
Tenkawa: ^
<Tenkawa>
ahh.. just a sec. which unit?
<Tenkawa>
I have the Odroid-N2 and N2+ SoC's I might have the reference docs buried around here somewhere and can see if I tested it a while back.
<Tenkawa>
not sure if that'll help
warpme_ has quit [Quit: Connection closed for inactivity]
<Las[m]>
Tenkawa: ODROID N2
<Tenkawa>
just a sec let me see what I still have
<Tenkawa>
what I was doing at the time was u-boot related so spi just came up in the research
<Tenkawa>
you are still running petitboot right?
<Tenkawa>
(I'm not)
<nekomancer[m]>
why petitboot not work with serial console :(
<Las[m]>
well I'm running petitboot but I don't want to
<Las[m]>
I want to replace what's in the SPI
<Tenkawa>
I just use syslinux/extlinux
<Tenkawa>
it works fine
<Tenkawa>
I'm booting a custom built debian64 image right now
<Tenkawa>
on both
<Tenkawa>
my n2 and n2+
<xdarklight>
Las[m]: SPI flash on Odroid-N2 is connected to SPIFC (SPICC is for generic purpose SPI transfers while SPIFC is the SPI Flash Controller - some IP optimized for flash transfers)
<Las[m]>
so I basically need to recompile my own device tree?
<xdarklight>
sorry, step 1) is not correct according to the comment - it seems that you need to replace emmc_data_8b_pins with emmc_data_4b_pins in line 582 instead (I mixed the emmc_ds_pins up with another board)
<xdarklight>
you can modify the dtb from within u-boot but from what I understand your device may not be running u-boot
<Las[m]>
what is the SW1 slide?
<Las[m]>
No it's running u-boot, I'm booting from the SD card
<Las[m]>
wish they'd have made two device trees, one for accessing the SPI and one that doesn't allow it, so you could easily choose to access it by just setting your device tree instead of manually editing the source code
<Las[m]>
Wonder how I can choose to only compile the device trees when building Linux
<Tenkawa>
Las[m]: you should be able to use dtc by itself
<Las[m]>
ah that's just the switch to choose to boot from eMMC/SPI directly instead of SPI
<Tenkawa>
we do that on our builder to make tuning changes all the time
<Las[m]>
dtc is the tool to compile dtsi files?
<Las[m]>
thanks
<Las[m]>
The only thing I'm wondering about is if this means I can only write to the SPI if I boot from an SD card, which seems somewhat inconvenient
<Tenkawa>
Las[m]: yeah dtc is the one..
sputnik has joined #linux-amlogic
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 244 seconds]
camus1 is now known as camus
Stricted has quit [Changing host]
Stricted has joined #linux-amlogic
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 272 seconds]
camus1 is now known as camus
Tenkawa has quit [Remote host closed the connection]
Tenkawa has joined #linux-amlogic
cmeerw has quit [Ping timeout: 272 seconds]
Tenkawa has quit [Remote host closed the connection]
f11f12 has joined #linux-amlogic
<f11f12>
khilman: thanks for your help, I got the N2 running with u-boot 2021.04 and Linux 5.12.10
<f11f12>
khilman: signing of the chained bootloaders is a bit weird and I used gcc-linaro-4.8-2015.06-x86_64_aarch64/arm-elf to do this step (my host is amd64, not i386)
<f11f12>
fyi: I used buildroot
<Las[m]>
Thanks for the help, I got access to the SPI on my ODROID N2, but I'm wondering, what's the difference between /dev/mtd0 and /dev/mtdblock0?