ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
LargePrime has quit [Ping timeout: 245 seconds]
tl_lim has quit [Ping timeout: 248 seconds]
tl_lim has joined #linux-rockchip
return0e has quit [Ping timeout: 240 seconds]
return0e has joined #linux-rockchip
nighty- has joined #linux-rockchip
lkcl has quit [Ping timeout: 248 seconds]
lkcl has joined #linux-rockchip
fullstop has quit [Quit: ZNC - http://znc.in]
fullstop has joined #linux-rockchip
lurchi_ is now known as lurchi__
anarsoul|3 has quit [Ping timeout: 264 seconds]
jailbox has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-rockchip
nots has quit [Quit: Page closed]
jailbox has joined #linux-rockchip
ameel has quit [Ping timeout: 260 seconds]
chewitt has joined #linux-rockchip
ameel has joined #linux-rockchip
anarsoul|3 has joined #linux-rockchip
anarsoul|3 has quit [Ping timeout: 240 seconds]
tl_lim has quit [Ping timeout: 264 seconds]
tl_lim has joined #linux-rockchip
lurchi_ has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 240 seconds]
chewitt has quit [Ping timeout: 260 seconds]
vstehle has joined #linux-rockchip
chewitt has joined #linux-rockchip
<Ke> ameel: there is btw PathModified= in systemd.path that should work with some sysfs files
Omegamoon has joined #linux-rockchip
tl_lim has quit [Remote host closed the connection]
tl_lim has joined #linux-rockchip
xerpi has joined #linux-rockchip
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-rockchip
<ameel> hey guys
<ameel> how do i get spi to load in ubuntu?
<Ke> what does that even mean=
<Ke> drivers are often loaded based on what the dtb tells you
<ameel> dtb?
<ameel> rk3399 has spi on the GPIO
<Ke> device tree binary
<ameel> there're no spi listed in /dev
<ameel> as far as i can tell, kernels for raspberry have spi module, but not enabled
<ameel> whereas, lsmod on my rock960 board shows no spi modules (actually no modules at all)
<ameel> Ke, what do
<ameel> i do
<ameel> what am I looking for?
<ameel> can you please point me in the right direction?
<Ke> man dtc
<Ke> ls /proc/device-tree
icenowy[m] has quit [Ping timeout: 260 seconds]
<Ke> -I fs
<Ke> you can store dts output to files and diff
icenowy[m] has joined #linux-rockchip
ameel2 has joined #linux-rockchip
<ameel2> Hi ke
<ameel2> I have the output from Dr
<ameel2> edit mentions a few Do I
<ameel2> A few spi*
<ameel2> What do you mean by diff?
<Ke> diff -u working-kernel.dts non-working-kernel.dts
<ameel2> Diff the /proc/device-tree and what? What needs to be edited/changed to add the stuf
<ameel2> Oh no
<ameel2> where do I find these files?
<Ke> generate using dtc
<Ke> you should perhaps very first learn, what is a device tree
astralix has joined #linux-rockchip
ameel2 has quit [Ping timeout: 260 seconds]
tl_lim has quit [Read error: Connection reset by peer]
<ameel> Ke I'm back
<ameel> dtc -I fs -O dts /proc/device-tree/ > devicetree.dts
<ameel> how do i get worlking vs non-working?
yann|work has quit [Ping timeout: 240 seconds]
<Ke> oh right, you had a working kernel on raspberry pi, then no idea
ayaka has quit [Ping timeout: 248 seconds]
<Ke> spi might not be supported on the board
<ameel> it is supported
<ameel> device tree has spi listed as well
<ameel> i downloaded the compiled boot image
<ameel> i'll replace the dtb with the one i converted on the system
<ameel> and try flash that and see what happens
<Ke> sure
<ameel> im just not sure how to compress the files back into img
<ameel> ideas?
<Ke> nope
<Ke> mkimage is often the tool, but I have no idea, what bootloader you are using
ayaka has joined #linux-rockchip
<ameel> uboot
<ameel> cheers
<Ke> on aarch64 sometimes u-boot can boot the Image directly
<Ke> either with bootefi or the other command that I forgot
ayaka has quit [Ping timeout: 260 seconds]
ayaka has joined #linux-rockchip
<ameel> yeah i have no idea
<ameel> lease use below command to pack image for Debian ./mkfirmware.sh debian
<ameel> if only i could find the freaking file mkfirmware.sh
<Ke> the standard way I did this, was to look at printenv on u-boot console
<Ke> then follow what bootcmd variable contains
<Ke> then use help to understand, what the commands mean
<ameel> hmm
<Ke> it will tell you, where u-boot gets the image and what is the format of the image
anton___ has joined #linux-rockchip
anton___ has quit [Client Quit]
BenG83 has quit [Ping timeout: 240 seconds]
<ameel> Ke
<ameel> uboot and boot images are 2 separate things
<ameel> oh
<ameel> i can just mount the boot partition
<ameel> and swap the files
<ameel> ill try that
yann|work has joined #linux-rockchip
lkcl has quit [Ping timeout: 248 seconds]
lkcl has joined #linux-rockchip
rompelstompel has joined #linux-rockchip
<ameel> Ke you there mate?
<ameel> so i checked the dtb file on the boot partition
<ameel> it has similar spi stuff
<ameel> status = "disabled"
<ameel> is it just a matter of changing it to "enabled"?
<Ke> don't know
<ameel> lol
<ameel> let's see what happens....
<ameel> worst case I just reflash, sigh
<ameel> oh it's booted
<ameel> ok status "enabled" probably not it
<ameel> should have written "okay"
<ameel> ke
<ameel> changing to "okay" killed it
<ameel> lol
<ameel> [ 1.988185] rockchip-pinctrl pinctrl: pin gpio1-15 already requested by ff350000.spi; cannot claim for ff3c0000.i2c [ 1.989123] rockchip-pinctrl pinctrl: pin-47 (ff3c0000.i2c) status -22 [ 1.989696] rockchip-pinctrl pinctrl: could not request pin 47 (gpio1-15) from group i2c0-xfer on device rockchip-pinctrl [ 1.990669] rk3x-i2c ff3c0000.i2c: Error applying setting, reverse things back
<ameel> fair enough
<ameel> Ke
<ameel> so i had spi32763 spi32764 spi32765 spi32766 in /sys/class/spi_master
<ameel> but my wifi died
LargePrime has joined #linux-rockchip
<Ke> ameel: you are so brave that eventually you will break a board
<Ke> but it's a learning experience, if you can afford it
<ameel> yeah, i guess
<ameel> I disabled all spi except for 1
<ameel> it shows up in sys/class/spi_master
<ameel> but nothing shows in /dev/
<ameel> and there's nothing in lsmod
<ameel> what's next?
<ameel> dmesg
<ameel> [ 1.864039] rockchip-spi ff1c0000.spi: Failed to request TX DMA channel [ 1.864625] rockchip-spi ff1c0000.spi: Failed to request RX DMA channel
xerpi has quit [Remote host closed the connection]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
LargePrime has quit [Ping timeout: 256 seconds]
aalm has quit [Ping timeout: 245 seconds]
lerc_ has quit [Quit: No Ping reply in 180 seconds.]
nighty-- has joined #linux-rockchip
lerc has joined #linux-rockchip
ayufan has quit [Ping timeout: 240 seconds]
LargePrime has joined #linux-rockchip
lurchi_ is now known as lurchi__
LargePrime has quit [Ping timeout: 256 seconds]
jailbox has quit [Ping timeout: 276 seconds]
LargePrime has joined #linux-rockchip
ayufan has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-rockchip
BenG83 has joined #linux-rockchip
cnxsoft has quit [Quit: cnxsoft]
ameel has quit [Ping timeout: 260 seconds]
afaerber has joined #linux-rockchip
JohnDoe_71Rus has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
rompelstompel has quit [Remote host closed the connection]
vagrantc has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
astralix has quit [Ping timeout: 264 seconds]
aalm has joined #linux-rockchip
afaerber has joined #linux-rockchip
Easyfab has joined #linux-rockchip
tllim has joined #linux-rockchip
lerc_ has joined #linux-rockchip
lerc has quit [Ping timeout: 260 seconds]
ayaka has quit [Ping timeout: 276 seconds]
ayaka has joined #linux-rockchip
ayaka has quit [Ping timeout: 255 seconds]
ayaka has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
yann|work has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
cosm has quit [Remote host closed the connection]
cosm has joined #linux-rockchip
yann|work has joined #linux-rockchip
unics has joined #linux-rockchip
unics has quit [Quit: Leaving]
anarsoul|3 has joined #linux-rockchip
Omegamoon has left #linux-rockchip [#linux-rockchip]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Easyfab has quit [Quit: Leaving]
lurchi__ has quit [Remote host closed the connection]
hanetzer has quit [Ping timeout: 240 seconds]
unics has joined #linux-rockchip
BenG83 has quit [Quit: Leaving]
lurchi__ has joined #linux-rockchip
lurchi__ has quit [Remote host closed the connection]
fysa has quit [Remote host closed the connection]
unics has quit [Quit: Leaving]
fysa has joined #linux-rockchip
BenG83 has joined #linux-rockchip
busterbcook has quit [Ping timeout: 256 seconds]
busterbcook has joined #linux-rockchip
lurchi__ has joined #linux-rockchip
afaerber has joined #linux-rockchip
lurchi__ has quit [Remote host closed the connection]
lurchi__ has joined #linux-rockchip
the_rock has joined #linux-rockchip
nighty-- has quit [Quit: Disappears in a puff of smoke]
tl_lim has joined #linux-rockchip
tllim has quit [Ping timeout: 260 seconds]
vagrantc has quit [Quit: leaving]
PoueT has joined #linux-rockchip