<mmind00>
jas-hacks: you mean the "mount: mounting /dev/mmcblk0p1 on /rfs failed: Invalid argument"? Does the kernel you use has the necessary filesystem compiled in?
Avagetto has joined #linux-rockchip
<jas-hacks>
mmind00: i checked that one
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 244 seconds]
Avagetto1 has quit [Ping timeout: 245 seconds]
cosm has quit [Ping timeout: 244 seconds]
Avagetto has joined #linux-rockchip
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 240 seconds]
levd1 has quit [Remote host closed the connection]
levd has joined #linux-rockchip
<naobsd>
jmcneill: dwc mmc card detect bit is 0: present 1: not present
<naobsd>
jmcneill: and grf/gpio should be configured properly
Avagetto has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 240 seconds]
cosm has joined #linux-rockchip
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 250 seconds]
Avagetto2 has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 245 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has quit [Ping timeout: 272 seconds]
McBitter has joined #linux-rockchip
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 258 seconds]
<jas-hacks>
The dw_mmc driver (rk_sdmmc.c) is heavily patched up in Android, I'm guessing the extension driver dw_mmc-rockchip.c does have the same work arounds.
cosm has quit [Ping timeout: 265 seconds]
Avagetto1 has quit [Ping timeout: 240 seconds]
Avagetto has joined #linux-rockchip
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 244 seconds]
Avagetto1 has quit [Ping timeout: 258 seconds]
<naobsd>
jas-hacks: do you know how much work was done in mainline for rk3288?
<naobsd>
jmcneill: sdmmc works on px2 board too
levd has quit [Ping timeout: 245 seconds]
<jas-hacks>
naobsd: sdmmc works on px2, what class card did you test?
<jmcneill>
naobsd, it does? thats great!
<naobsd>
jas-hacks: do you understand I'm talking about NetBSD?
<naobsd>
jmcneill: thank you for your great work :)
<jmcneill>
always good to hear my code works for someone other than me :p
<naobsd>
:)
<naobsd>
I need to take dinner, later
<naobsd>
jmcneill: return !!(cdetect & DWC_MMC_CDETECT_CARD_DETECT_N); <- remove one "!"
<jmcneill>
did i misread datasheet?
dlezcano has joined #linux-rockchip
<naobsd>
jmcneill: I checked linux mainline, 0 is present
hipboi has quit [Read error: Connection timed out]
<naobsd>
act8846 is common on rk3188/rk3288
<jmcneill>
oh i should try your new uboot
<naobsd>
for rk3066 tps(forgot number) or axp2xx
<naobsd>
axp2xx on rk3066 is very minor I think
<naobsd>
jmcneill: it should say RK3188+ ;)
<naobsd>
(I'm away for a while)
<jmcneill>
ChipVer: 310B20130131V101
<jmcneill>
CPU: RK3188+
<jmcneill>
looks good
<jmcneill>
and my cpu came up at 1.6GHz so netbsd was happy with it
<jmcneill>
hm, sdmmc doesn't work anymore
BorgCuba has joined #linux-rockchip
<BorgCuba>
jmcneill, for me sdmmc works
<BorgCuba>
with 3.19-rc1
<jmcneill>
ah that is because i applied your cdetect change
<naobsd>
jmcneill: did you apply grf lines too?
<jmcneill>
did you send me a patch?
<naobsd>
yes
<jmcneill>
ah you should have sent to the mail at the top of the file
<jmcneill>
rarely check the other one:)
<naobsd>
ah, I see
<naobsd>
anyway, gpio3b0, sdmmc0 detect pin is mis-configured as gpio
<BorgCuba>
btw, has anybody checked the dwc2 otg gadget patches (29) or has a working configuration for it? I think rperier also had problems with it.
hipboi has joined #linux-rockchip
<jmcneill>
I wonder if that's why PWREN logic is inverted
<jmcneill>
with your full patch sdmmc works again
<naobsd>
I'm sure mmc power pin on RR is active low, but I'm not sure it's dwc mmc requirement or just board configuration
<jmcneill>
uboot sources have a comment to use 0 for power on mmc0 and 1 for power on emmc
<jmcneill>
i couldn't find the same logic in the linux driver
<jmcneill>
looked to me like it was 1 all the time there
<naobsd>
linux mainline _mmc_ driver doesn't controll power pin, it's configured as gpio and described in board specific dts
<naobsd>
mmc power pin is one of pinmux "function", but it's possible to use another pin. later case, it must be handled as gpio controlled power pin
<naobsd>
but generally another pin shouldn't be used, "boot from SD" is impossible
<jmcneill>
I applied your patch, thanks!
<naobsd>
I'm trying pll things for rk3066...
<naobsd>
(I'm away for a while again...)
McBitter has quit [Quit: Leaving]
<karlp>
naobsd: where did you get that minix link? I can't find it linked in the forums at all, I was going to refer to it to ask again for x5mini source
<jmcneill>
i searched "minix neo x7 sdk" on google and it showed up in the second result
<karlp>
hrm, the facebook post mentions it's for x7/x7mini
<karlp>
maybe the x5 is also for the mini too
<karlp>
unfortunately the link went to the forum that they shut down and deleted the posts from :|
<naobsd>
yeah, google search told me that ;)
<naobsd>
I downloaded both x5 and x7 tarball
<naobsd>
if you need I can put it somewhere
<karlp>
well, x5 is nearly here,
<karlp>
at 2.9/3.1gig
<naobsd>
I see
<karlp>
would be nice to get a self built android kernel to build and boot
<karlp>
I hadn't found any existing source that booted on this x5mini,
<karlp>
(of the 3.0+ android sources)
<naobsd>
I remembered why uhub2 is not attached on px2
<naobsd>
it needs DC plugged...
<naobsd>
I forgot it every time...
<naobsd>
and I rememred
<naobsd>
remembered that
<naobsd>
rockchip specific dwctwo parameters should be applied only for otg, for host, generic one should be used...
foo_ has joined #linux-rockchip
foo_ has quit [Ping timeout: 246 seconds]
<karlp>
huh, that download is actually a git repo
<karlp>
hrm, I guess I need to clone it again locally to make it "unbare"
<jmcneill>
naobsd: can you find me i2c clock info?
<naobsd>
jmcneill: it should be same as px2, pclk_cpu for i2c[01], pclk_periph for i2c[234]
<jmcneill>
datasheet says "I2C controller uses the APB clock as the system clock"
libv has quit [Ping timeout: 250 seconds]
<naobsd>
apll -> aclk_cpu -> pclk_cpu
<naobsd>
sorry, pll/clk thing is still difficult for me :(
Avagetto has joined #linux-rockchip
<naobsd>
gpll/cpll -> aclk_periph -> pclk_periph
<naobsd>
I think i2c clock is same as px2 trm
<naobsd>
mmm, I forgot what I was trying...
<naobsd>
hmm, I want "reboot bootloader"...
<naobsd>
let hardcode it ;)
<jmcneill>
i2c driver done except for the src clk part
nighty^ has joined #linux-rockchip
<naobsd>
jmcneill: where it comes from? CRU_CLKSEL_CON11_MMC0_PLL_SEL __BIT(6)
hipboi has quit [Read error: Connection timed out]
hipboi has joined #linux-rockchip
libv has joined #linux-rockchip
<jmcneill>
I forget where I saw that. I think RK3188 specific.
cnxsoft1 has quit [Remote host closed the connection]
Avagetto has quit [Quit: Leaving.]
Avagetto has joined #linux-rockchip
Luke-Jr has quit [Quit: Konversation terminated!]
Luke-Jr has joined #linux-rockchip
<naobsd>
hmmm...
<naobsd>
no idea why emmc cannot be detected...
Avagetto has quit [Quit: Leaving.]
plumser has joined #linux-rockchip
plumser has quit [Client Quit]
<ganbold_>
I guess enough for today, was able to use early printf in initarm()
nighty^ has quit [Ping timeout: 244 seconds]
<jmcneill>
naobsd: different clock, inverted PWREN logic?
nighty^ has joined #linux-rockchip
<jmcneill>
ganbold, that's great!
FreezingCold has quit [Quit: Out]
ganbold_ has quit [Remote host closed the connection]
need_a_ko has joined #linux-rockchip
<need_a_ko>
hi
<need_a_ko>
Is there a tun.ko for rk3026? or at least any kernel source?
ganbold_ has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
need_a_ko has quit [Quit: Page closed]
jas-hacks1 has joined #linux-rockchip
jas-hacks has quit [Ping timeout: 244 seconds]
jas-hacks1 has left #linux-rockchip [#linux-rockchip]
ganbold_ has quit [Remote host closed the connection]
ganbold_ has joined #linux-rockchip
<naobsd>
sleepy
nighty^ has quit [Ping timeout: 244 seconds]
Luke-Jr has quit [Excess Flood]
Luke-Jr has joined #linux-rockchip
luke-jr_ has joined #linux-rockchip
Luke-Jr has quit [Read error: Connection reset by peer]
<naobsd>
aaaaah
<naobsd>
I broke px2 board...
<naobsd>
I scratched board hardly while removing HDD...
luke-jr_ is now known as Luke-Jr
<jmcneill>
now you can focus on rk3188 :)
<naobsd>
it still boot...
<naobsd>
small 3pin chip is floating ...
<naobsd>
8050 J3Y SOT-23 ?
<naobsd>
probably some power line is dead :(
<jmcneill>
how to tell if this board has emmc or nand?
<naobsd>
configure grf & probe for both emmc and nand?
<jmcneill>
heh
<jmcneill>
well linux dmesg looks like nand, bummer
<jmcneill>
first, should never access members of device_t directly
<naobsd>
eMMC is more expensive/fast than NAND, cheap product uses NAND
<jmcneill>
device_unit(self) is preferred mechanism
<jmcneill>
second, i added a "port" locator that you should use for that (using it with i2c)
<jmcneill>
dwcmmc0 at obio0 ... port 0
<jmcneill>
dwcmmc1 at obio0 ... port 1
<jmcneill>
etc
<naobsd>
I see
<jmcneill>
i'll probably move it over to config similar to awin_io.c at some point
<jmcneill>
but lazy
<jmcneill>
probably spend the next couple days trying to figure out why i2c driver doesn't work
<naobsd>
I see
<jmcneill>
or at least, i can't talk to the hdmi tx where i think it is
<jmcneill>
rk3188 cru trm sure would be helpful
<naobsd>
sleepy
<naobsd>
good night!
<jmcneill>
cya
<Astralix1>
Good evening
dlezcano has quit [Ping timeout: 272 seconds]
FreezingCold has quit [Ping timeout: 256 seconds]
<bbelos>
hello Astralix1
<Astralix1>
Hey, bbelos
<bbelos>
my kernel seems to be in pretty decent shape if i can get the display working
<Astralix1>
That is one important step forward.
<Astralix1>
My kernel does set up the LCD correctly too, but you can hear that the DC/DC for some core functionality isn't working right
<Astralix1>
It issues a high frequency beep that changes frequency under changing system load
<bbelos>
that's pretty weird
<Astralix1>
And depending on the test setting, SOC and DRAM is getting pretty warm
<Astralix1>
But as I told, the sources and the kernel do not match. But the german vendor tried several times to get the correct sources from the chinese OEM... no chance
<Astralix1>
Got two different packages, both not matching
<bbelos>
comparing my dmesg to stock shows a difference in dclk on lcdc1. trying to figure that one out and then have some issues with gpu clk
<bbelos>
also need to find an axp_power driver
<Astralix1>
I am currently replicating the whole build process of firefly android
field^Mop has joined #linux-rockchip
<Astralix1>
hmm... my rkflashtools do not get parameters from rk3288 booting via uboot...
<Astralix1>
How can I backup parameters from uboot started rk3288?
_bengal_ has quit [Quit: Leaving]
zombu2 has quit [Ping timeout: 244 seconds]
zombu2 has joined #linux-rockchip
zombu2 has quit [Ping timeout: 258 seconds]
zombu2 has joined #linux-rockchip
<jmcneill>
naobsd: smp fixed but it doesnt get along well with cpu freq changing