leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
tonikasch has quit [Quit: Bye!]
BusError has quit [Ping timeout: 248 seconds]
BusError has joined #linux-rockchip
Theueip has quit [Quit: Leaving...]
akaizen_ has quit [Remote host closed the connection]
akaizen has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
Astralix1 has joined #linux-rockchip
Astralix has quit [Ping timeout: 264 seconds]
x_x|eebrah is now known as o_O|eebrah
akaizen has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
Dan68 has quit [*.net *.split]
hramrach has quit [*.net *.split]
Dan68 has joined #linux-rockchip
jeremb has quit [Ping timeout: 264 seconds]
jeremb_ has joined #linux-rockchip
jeremb_ is now known as jeremb
merbanan has quit [Ping timeout: 245 seconds]
merbanan has joined #linux-rockchip
hipboi has joined #linux-rockchip
akaizen has joined #linux-rockchip
rellla has joined #linux-rockchip
rellla2 has joined #linux-rockchip
rellla has quit [Ping timeout: 264 seconds]
AstralixNB has joined #linux-rockchip
akaizen has joined #linux-rockchip
akaizen is now known as 36DABGD3Q
36DABGD3Q has quit [Read error: Connection reset by peer]
jeremb has joined #linux-rockchip
jeremb has quit [Changing host]
AstralixNB has left #linux-rockchip [#linux-rockchip]
o_O|eebrah is now known as O_O|eebrah
AstralixNB has joined #linux-rockchip
hramrach has joined #linux-rockchip
arokux2 has joined #linux-rockchip
atiti has joined #linux-rockchip
hramrach has quit [Ping timeout: 240 seconds]
hramrach has joined #linux-rockchip
jpsminix has joined #linux-rockchip
<jpsminix> Hi!
<AstralixNB> hi
tonikasch has joined #linux-rockchip
<AstralixNB> hipboi?
<AstralixNB> I try to understand rk bootloader mechanism
<hipboi> AstralixNB, here
<AstralixNB> From what I kno so far, the mask rom loader fetches 2k of code into SRAM that is used to bring up SDRAM
<AstralixNB> Then the rest of the bootloader is put into SDRAM and started
<hipboi> yes
<hipboi> usually the 2K code just setting the arm core and clock
<AstralixNB> What I am trying to figure out is, where this code is loaded and from where it is loaded out of the file
<hipboi> and load from external storage
<AstralixNB> Yes, and the token that identifies the bootloader is simply "BOOT"
<AstralixNB> but after this token some text starts... looks like the strings that come up if you start bootloader and have a serial port attached
<hipboi> my idea is to go from the external sdcard first
<AstralixNB> there is a SD Card bootloader in the SDK
<hipboi> since we can read the sdcard on pc
<AstralixNB> No need, I can read .bin fine
<AstralixNB> and I can disassemble it too, but I need to get an idea of where certain parts are put.
<hipboi> that's why we need sd card
<AstralixNB> do we?
<hipboi> rockchip provide a window tool to write rkimage to sdcard
<hipboi> for sd booting
<AstralixNB> yes
<hipboi> we can see how the image is laid at the sdcard
<AstralixNB> ah, sorry, I am more interested in where the things are put inside the RK
<hipboi> but the bootloader must be there
<hipboi> the bootloader will be start from some certain sectors
<hipboi> on sd card
<AstralixNB> Yes but that is not the question
<AstralixNB> I am one step ahaead
<AstralixNB> finding the correct position of the sdboot.bin on an sdcard is a matter of seconds and I can do that some times.
<AstralixNB> but how is this sdboot.bin put into pieces?
<hipboi> i see
<AstralixNB> the mask rom loader will load 2k of it to internal SRAM
<AstralixNB> which 2k?
<AstralixNB> and is the SRAM remapped to 0x00000000 or is it run at 0x10080000
<AstralixNB> What is the start vector in the mask rom loader, as the first bytes of the first 2k of sdboot.bin are not lokking like code, but constants.
<AstralixNB> And I am not sure if the provided bootloader of the SDK will work with 3188
<hipboi> i guess the start vector is at 0xffff0000 in mask rom loader
<AstralixNB> one if the ascii parts in it tell "rk2928usbplug"
<AstralixNB> 0xffff0000 is outside any valid memory
<hipboi> where is the mask rom located
<AstralixNB> 0000_0000/1012_0000
<AstralixNB> At reset mask ROM is at 0x10120000 and mirrored to 0x00000000
<AstralixNB> after relocation, Embedded SRAM at 0x10080000 is mirrored to 0x00000000
<AstralixNB> 0xFFFF0000 is an option as the upper 1GB SDRAM page is at 0xE0000000. But at time if loading bootloader, the SDRAM is not available.
<AstralixNB> Btw, the procedure is the same for all memory sources, SD (if supported) MMC, SPI NOR, NAND
<hipboi> if BTMODE an external pin?
<hipboi> ok
<hipboi> When soc_remap = 1, the bootrom is mapped
<hipboi> to address 0x10100000 and internal memory
<hipboi> is mapped to address 0x0.
<AstralixNB> yes
<hipboi> oh, BTMODE is an external pin
<AstralixNB> ah... wasn't the internal mask rom loader encrypted?
<AstralixNB> that may be the reason I cannot ready any logical assembly in that bootloader...
<AstralixNB> Jep, it is encrypted
<hipboi> how do you figure out it's encrypted
<AstralixNB> decryped it
<hipboi> ...
<AstralixNB> now the strings are present that you can see from the serial port while bootloader is up
<AstralixNB> still missing the entry vector from mask-rom code to SRAM code for SDRA setup
<AstralixNB> for the encryption thing... all credits go to sarg
<AstralixNB> We need to find out if we can sign the RK3188 that there is an unencrypted bootloader it should start... otherwise we must find out what rk thinks about that we use their encryption for our bootloader...
mmind00 has joined #linux-rockchip
hipboi has quit [Quit: Leaving]
O_O|eebrah is now known as o_O|eebrah
hipboi has joined #linux-rockchip
<tonikasch> Hi! what do you think of the wandboard quad?
<hipboi> AstralixNB, if i understand correct, the bin file is encrypted and was decrypted by the tool(RKAndroidTool or sd imager writer) and then write to nand flash or sd card
<AstralixNB> Ok, could be that the NAND content then is available unencrpted
<AstralixNB> Or the SD content
GeorgeJ has joined #linux-rockchip
arokux2 has quit [Remote host closed the connection]
Galland has joined #linux-rockchip
<Galland> hello all
<Galland> tonight I've been playing around with the xf86 driver from olegk0 (in turn based on a past version of sunxi's)
<Galland> which, on the rk3066 was able to do some limited XV (resize videos in HW, avoiding the massive frame losses of SW resizing)
<tonikasch> :)
<Galland> since olegk0 has had 0 activity for months, I've forked his repo to: https://github.com/Galland/xf86-video-fbdev
<Galland> and pushed some commits for verbose error messages
<Galland> and compiled for the rk3188, to see a yellow tinted screen (Red and Blue swapped -> fixed now) and an error initializing Overlay and IPP
<Galland> Overlay didnt load because the released rk3188 kernel was missing fb1, I've reenabled it in the board file and then
<Galland> the next error was the fb1 buffer was unallocated, so I changed a line in rk-fb.c that prevented its allocation
<Galland> then getting ipp was a matter of modprobing the rk29-ipp.ko module
<Galland> (the one compiled from our source)
<Galland> now Xorg log shows XV initialized and xvinfo responds with the available methods/formats
<Galland> however starting a player with xv support (such as mplayer) throws lightdm/X back to the login screen
<Galland> ...
<Galland> there are so many changes in the 3188 kernel inside folder /drivers/video/rockchip (and lcdc subfolder)
<Galland> that 1st broke the framebuffer support (linux boot messages and text console)
<Galland> and now I see that also affect how olegk0's driver handled 2D operations in HW :(
<Galland> movies are so lightly and well decoded in sw that it's a shame we can't currently watch them full screen due to this
<Galland> here instructions to compile the xf86 driver in case you are interested: http://hwswbits.blogspot.com/2013/04/compiling-mali-hw-accelerated-driver.html
<Galland> just use the above repo instead of olegk0's
<Galland> (blog post title is misleading, I know :P )
<hipboi> thanks, Galland
<ssvb> Galland: does XV work now?
<Galland> nope
rellla2 is now known as rellla
<Galland> when xv is about to display a video I get thrown out to the lightdm login screen
AstralixNB has quit [Quit: Leaving.]
atiti has quit [Ping timeout: 260 seconds]
<hramrach> probably X server crashes
<hramrach> do you get a stack trace in the log? (/var/log/Xorg.0.log.old)
GeorgeJ has quit [Remote host closed the connection]
<Galland> I forgot! I'm so used to checking just dmesg (which did not give much info)
<Galland> I'm testing right now
Galland has quit [Quit: Saliendo]
Galland has joined #linux-rockchip
tinti has joined #linux-rockchip
<Galland> here it is:
<Galland> [ 6383.995] (II) RK30FB(0): video params drw_x=1063,drw_y=597,drw_w=854,drw_h=480,src_x=0,src_y=0,src_w=854,src_h=480,width=854,height=480
<Galland> [ 6383.996] (II) RK30FB(0): video params clipBoxes x1=1063,x2=1917,y1=597,y2=1077
<Galland> [ 6383.996] (II) RK30FB(0): overlay try set res - x:1920, y:1080 ---- width:854, heigth:480, mode:2
<Galland> [ 6383.996] (II) RK30FB(0): Try setup overlay
<Galland> [ 6384.003] (EE)
<Galland> [ 6384.004] (EE) Backtrace:
<Galland> [ 6384.004] (EE)
<Galland> [ 6384.004] (EE) Segmentation fault at address 0x0
<Galland> [ 6384.004] Fatal server error:
<Galland> [ 6384.004] Caught signal 11 (Segmentation fault). Server aborting
<Galland> I'll start looking at the source on the "overlay try set res ..."
<Galland> thanks hramrach :)
<Galland> I'll add some more verbosity to the code to spot the cause
<Galland> brb
Galland has quit [Quit: Saliendo]
GeorgeJ has joined #linux-rockchip
Galland has joined #linux-rockchip
<Galland> confirmed it doesn't get past line 228 (OvlSetMode)
Theueip has joined #linux-rockchip
<hramrach> Galland: probably it calls a funcion pointer which is unset (0) because the backtrace says Segmentation fault at address 0x0
<Galland> it is called with arguments (pScrn, 1920, 1080, 2) where 2 == RGBX_8888
<hramrach> hmm, actually not sure if that 0x0 would be instruction pointer or data address or either
<Galland> checking
<Galland> data address i think
<hramrach> if you have ssh you can always do gdb Xorg
<hramrach> but it locks up local session
<Galland> I actually should be using gdb :D I know
AstralixNB has joined #linux-rockchip
<Galland> brb
Galland has quit [Quit: Saliendo]
Galland has joined #linux-rockchip
<Galland> return ioctl(overlay->fd, FBIOPUT_VSCREENINFO, &overlay->var);
<Galland> overlay->fd exists since SetupOvl (line 347) successfully opens it upon loading the driver
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
<Galland> overlay->fd is /dev/fb1, which is allocated with size 1920*1080*4*3 bytes
<Galland> more than enough (3x) for xres=1920, yres=1080 and mode=RGBX_8888
<jeremb> AstralixNB: I see you are working on the bootloader. I just wanted to tell you that sarg will be happy to help if you have any question
<AstralixNB> so where is he?
<AstralixNB> someone telling him the IRC channel?
<jeremb> will give you his contact info
<AstralixNB> fine
<jeremb> nop but I emailed him a while ago and he said he has lost interest in this project mainly becaus he doesn't have enough pare time
<jeremb> hoever he will be happy to help about the work he has done
<AstralixNB> Ah, ok, then may be I can be the bridge and contact person. I found him on XDA, I'll ping him over there
<AstralixNB> thanks for the news
<jeremb> no problem
<AstralixNB> So I'll beb back later with my alter ego... ;)
naobsd has joined #linux-rockchip
AstralixNB has quit [Ping timeout: 264 seconds]
o_O|eebrah has quit [Ping timeout: 260 seconds]
eebrah has joined #linux-rockchip
eebrah is now known as Guest9303
Guest9303 is now known as eebrah_
eebrah_ is now known as ibrah
Theueip has quit [Ping timeout: 256 seconds]
arokux2 has joined #linux-rockchip
mcbrick has joined #linux-rockchip
Theueip has joined #linux-rockchip
Galland has quit [Quit: Saliendo]
Theueip_ has joined #linux-rockchip
Theueip has quit [Ping timeout: 264 seconds]
mmind00 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Galland has joined #linux-rockchip
_shb_ has joined #linux-rockchip
_shb_ has quit [Client Quit]
_shb_ has joined #linux-rockchip
_shb_ has quit [Client Quit]
<tonikasch> Galland hi! any news on the xf86-video-fbdev issues?
tinti has quit [Remote host closed the connection]
akaizen has quit [Remote host closed the connection]
<Galland> hi, nope, left it at the ioctl seg fault, must be something missing on the hw fb driver
<Galland> at the kernel
<tonikasch> :s
akaizen has joined #linux-rockchip
naobsd has quit [Quit: Page closed]
akaizen has quit [Ping timeout: 256 seconds]
akaizen has joined #linux-rockchip