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
anarsoul has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
lurchi_ is now known as lurchi__
cnxsoft has joined #linux-rockchip
kever has quit [Ping timeout: 260 seconds]
kever has joined #linux-rockchip
equaa has quit [Ping timeout: 256 seconds]
tl_lim has joined #linux-rockchip
tllim has quit [Ping timeout: 246 seconds]
<hgs> hi all, i am attempting to learn how to compile the entire 64 bit build system for rockchip
<hgs> I checked out the latest repository contents, updated evb-rk3399_defconfig, rk3399-sapphire-excavator-linux.dts from the build system which was already working.
<hgs> Generated the following files kernel.img,parameter.txt, trust.img, MiniLoaderAll.bin, resource.img, uboot.img (used rootfs of the old build for now) and then flashed using AndroidTool_Reelase_v2.52.
<hgs> Issued gpt write mmc 0 $partitions and it was not booting successfully
<hanetzer> hgs: what's your bootloader and main boot device?
<hgs> following are the logs from the console https://pastebin.com/paPvaJm9
<hgs> hanetzer: are you asking about uboot ? sorry i dont understand the terms
<hanetzer> ok, u-boot then.
<hanetzer> where is u-boot installed?
<hgs> address is 0x00004000
<hanetzer> no. I mean mmc, spi, sdcard, what?
<hgs> oh its on the flash
<hanetzer> what goes wrong?
<hanetzer> and which 'repository' ?
<hgs> followed instruction from http://opensource.rock-chips.com/wiki_Linux_user_guide, repository seems to be from https://github.com/rockchip-linux/repo
<hgs> following is the error in the console "Unknown command 'boot_android' - try 'help' Unknown command 'bootrkp' - try 'help' switch to partitions #0, OK mmc0(part 0) is current device Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** MMC Device 1 not found no mmc device at slot 1"
<hgs> is it trying to boot from mmc
<hgs> ?
<hgs> looks like Unknown command 'boot_android' - try 'help' Unknown command 'bootrkp' - try 'help' switch to partitions
<hgs> is the problem
<hanetzer> hgs: I would suggest using upstream u-boot. do you actually want to use android?
<hgs> no i want linux distribution
<hgs> debian or ubuntu
<hanetzer> yeah. upstream u-boot, not the vendor stuff. which device?
<hgs> hanetzer: pico rk3399
<hanetzer> may need some porting
<hanetzer> usually new rockchip devices just need a bit of glue code
<hanetzer> pico or rico ?
<hgs> hanetzer: updated evb-rk3399_defconfig, rk3399-sapphire-excavator-linux.dts from the working build system, would that not be sufficient also how to narrow down to the glue code?
<hgs> hanetzer: pico from boardcon
<hanetzer> arch/arm/mach-rockchip/rk3399* needs adjustments. link to the specs?
<hgs> hanetzer: ok i will diff the contents, also where is the upstream uboot i thought https://github.com/rockchip-linux/repo is the onbe
<hanetzer> nah. git.denx.de
<hgs> hanetzer: so just the uboot from upstream and the glue code patching should make it work?
<hanetzer> probably. its what I did for my asus c201/rk3288-veyron-speedy
<hgs> hanetzer: thanks, but seems not so easy
<hanetzer> it is. assuming you know a bit of stuff on how this works.
<hgs> hanetzer: between i am new to these kind of stuff, what i know is about some baremetal programming, user space linux programing, not sure if those would be sufficient?
<hanetzer> u-boot is essentially baremetal.
<hgs> hanetzer: yaa, never worked on uboot though, have some reading to make, do you have reference to get started
<hanetzer> hgs: doc/README.rockchip and the source code itself
<hgs> hanetzer: ok thanks, between even if you are building for arm64 bit you still look in to arch/arm/mach-rockchip/rk3399
<kever> Rockchip U-Boot do support linux distro format
<kever> hgs: the log shows that there is no available boot found.
<hanetzer> yeah.
<kever> if you are using kernel.img/resource.img from vendor, you need enable BOOT_ROCKCHIP to boot this format image.
<hgs> kever: not sure what you referring to by saying vendor, i using code from https://github.com/rockchip-linux/repo and patched the evb-rk3399_defconfig, rk3399-sapphire-excavator-linux.dts which was taken from vendor build source
<hanetzer> hgs: vendor == rockchip
<hanetzer> it has a sort of slang meaning 'kinda shitty code that works, but is not suitable to be merged into upstream' where upstream is u-boot or linux itself
<kever> Rockchip is using android format or rkimg format for product, so if you want to use Linux distro format, you need ot pack the boot.img by yourself.
ramcq has quit [Ping timeout: 265 seconds]
<hgs> hanetzer: vendor i meant it is from pico who is oem of rockchip
<hgs> kever: ok any information on how to pack the boot.img?
adj_ has joined #linux-rockchip
adj__ has quit [Read error: Connection reset by peer]
<hgs> kever: thanks i will try to connect the dots before i put my questions
<hgs> apart from uboot kernel rootfs, i dont have clue on other binaries like idbloader miniloader etc also not sure about whether the address that come default are valid
tl_lim has quit [Ping timeout: 246 seconds]
adj__ has joined #linux-rockchip
tl_lim has joined #linux-rockchip
<kever> I think the image type from PICO is origin from rockchip, no difference.
adj_ has quit [Ping timeout: 250 seconds]
lurchi_ has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 264 seconds]
<hanetzer> in any case. should avoid 'think' and make it 'know'. if you use standard, known working formats, you don't have to play guessing games :)
vstehle has joined #linux-rockchip
ramcq has joined #linux-rockchip
tl_lim has quit [Ping timeout: 246 seconds]
tl_lim has joined #linux-rockchip
anarsoul has quit [Ping timeout: 246 seconds]
<kever> Well, hgs says his image including kernel.img/parameter.txt/trust.img, this is definitly rockchip rkimg format, no matter it's from rockchip or from pico, that's why I say no difference.
<hgs> kever: following the way in which pico build system generated package (boot.img, idbloader.img, rk3399_loader_v1.10.112.bin, trust.img, uboot.img, Image, rk3399-sapphire-excavator-linux.dtb), i made some progress, but still it crashed logs in the follwoing link https://pastebin.com/KhMzzxJ7
aalm has joined #linux-rockchip
aalm has quit [Ping timeout: 268 seconds]
aalm has joined #linux-rockchip
cnxsoft has quit [Read error: Connection reset by peer]
tl_lim has quit [Read error: Connection reset by peer]
<hgs> can any one point to what this exception is related to ?? https://pastebin.com/92p8u0xY
matthias_bgg has joined #linux-rockchip
fireglow has quit [Quit: Gnothi seauton; Veritas vos liberabit]
fireglow has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
nighty- has quit [Quit: Disappears in a puff of smoke]
<maz> hgs: well, exactly what it says on the tin: IRQ120 is screaming, and no driver is willing to shut it down. after a while, the kernel shuts it off.
kever has quit [Ping timeout: 256 seconds]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
rompelstompel has joined #linux-rockchip
hgs has quit [Ping timeout: 246 seconds]
afaerber has quit [Read error: Connection reset by peer]
afaerber has joined #linux-rockchip
afaerber has quit [Remote host closed the connection]
mrfixit2001 has joined #linux-rockchip
<rompelstompel> any rock64 users here that managed to get mpph264enc working with gstreamer?
afaerber has joined #linux-rockchip
lurchi_ is now known as lurchi__
equaa has joined #linux-rockchip
<rompelstompel> perhaps any rk3328 users in general that used the mpp stuff before?
aalm has quit [Ping timeout: 268 seconds]
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #linux-rockchip
cnxsoft has quit [Quit: cnxsoft]
mrfixit2001 has quit [Quit: Mutter: www.mutterirc.com]
kloczek has joined #linux-rockchip
<sphalerit> Hi folks. So I've got a USB-TTL adapter and taken apart a USB cable. How do I connect the wires up so I can use the usb_UART thing?
* sphalerit uploaded an image: 1526050095632.jpg (324KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/LHBthVCcdRorJnjDrJxaQZAO>
<sphalerit> Here's what I've got
JohnDoe_71Rus has joined #linux-rockchip
mrfixit2001 has joined #linux-rockchip
<mrfixit2001> rompelstompel: I've used rkmpp before but nothing with gstreamer. I've built packages for it in libreelec and buildroot. Use the source from ayufan's github repo.
<mrfixit2001> Not sure if that helps
lurchi__ is now known as lurchi_
mrfixit2001 has quit [Quit: Mutter: www.mutterirc.com]
Easyfab has joined #linux-rockchip
<mmind00> sphalerit: black to gnd, green to tx or rx, white to the other .. I somehow always mix them up
<sphalerite> mmind00: thanks!
<mmind00> sphalerit: of course you also need the kernel commandline option
<sphalerite> just rockchip.usb_uart right?
<sphalerite> oh, and which port will it be?
tllim has joined #linux-rockchip
indy has joined #linux-rockchip
<mmind00> sphalerite: the "otg"-port ... on Jerry I think its the left side
<mmind00> but don't quote me on that ;-)
<sphalerite> mmind00: I'm on speedy. it has two full-size USB ports
<sphalerite> both on thr right
<mmind00> sphalerite: yes, jerry has two full sized ports as well ... just the controller behind one of them is the "otg" one ... hence the quotes
<sphalerite> ah right
<sphalerite> so, try both, and if they both don't work, panic
<sphalerite> :D
yann has joined #linux-rockchip
vagrantc has joined #linux-rockchip
aalm has joined #linux-rockchip
Easyfab_ has joined #linux-rockchip
fixmer has quit [Read error: Connection reset by peer]
Easyfab has quit [Ping timeout: 240 seconds]
afaerber has quit [Quit: Leaving]
matthias_bgg has quit [Quit: Leaving]
lurchi_ is now known as lurchi__
<hanetzer> sphalerite: speedy, lemme see
mrfixit2001 has joined #linux-rockchip
<hanetzer> the one at 0xxff580000 is a DWC OTG Controller
<sphalerite> how do I work out which physical port that is?
<hanetzer> unsure offhand. I am currenlty physically away from it, so I can't do da testing
lurchi__ is now known as lurchi_
<hanetzer> /sys/kernel/debug/usb/devices
adj_ has joined #linux-rockchip
adj__ has quit [Ping timeout: 260 seconds]
mrfixit2001 has quit [Quit: Mutter: www.mutterirc.com]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
afaerber has joined #linux-rockchip
rj1_ has joined #linux-rockchip
tllim has quit [Read error: Connection reset by peer]
LargePrime has quit [Ping timeout: 264 seconds]
Easyfab_ has quit [Quit: Leaving]
LargePrime has joined #linux-rockchip
vstehle has quit [Ping timeout: 248 seconds]
agusan has joined #linux-rockchip
<hanetzer> sphalerite: front-most, it looks like
<hanetzer> actually, it looks like both are the otg node. seems the generic ehci controller is only used by the webcam