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
ayaka has quit [Ping timeout: 265 seconds]
ayaka has joined #linux-rockchip
ayaka has quit [Ping timeout: 250 seconds]
ayaka has joined #linux-rockchip
imsherlock has quit [Ping timeout: 240 seconds]
vicencb has quit [Quit: Leaving.]
ayaka has quit [Ping timeout: 265 seconds]
return0e has joined #linux-rockchip
ayaka has joined #linux-rockchip
return0e has quit [Ping timeout: 276 seconds]
ayaka has quit [Ping timeout: 268 seconds]
ayaka has joined #linux-rockchip
vstehle has quit [Ping timeout: 240 seconds]
<levd> hi all, I'm trying the U-Boot v2019.10 version. After getting tired of plugging out and in of SD cards each time recompiling U-Boot, I'm in despair needing the rockusb mode.
<levd> However, it is not easy to setup obviously. Run "rockusb 0 mmc 1" got "No USB device found\nUSB init failed: -19"
<levd> After checking the code, it failed at "usb_gadget_initialize(controller_index);" which failed uclass_get_device_by_seq(UCLASS_USB_GADGET_GENERIC, index, &dev) and uclass_get_device(UCLASS_USB_GADGET_GENERIC, index, &dev).
<levd> I run "dm uclass", showing no devices under "uclass 89: usb".
<levd> Really got stuck at the U-Boot device model. I grep the source code, finding the driver dwc3_generic_peripheral defines the driver of uclass UCLASS_USB_GADGET_GENERIC. But what device does the driver match? I'm really clueless.
<levd> Would anyone shed some light on this?
<levd> kevery: I find no defconfig of rockchip boards using rockusb. Some boards are not entering MaskRom mode easily. How did you guys do U-Boot maindevelopment in that situation?
<kevery> levd: some board enable rockusb in Kconfig instead of defconfig file. It will be better to enable recovery button to enter rockusb mode in U-Boot, but many boards do not have good support for this feature. Rockchip vendor U-Boot support this feature for most of boards.
<kevery> If the board not easy to enter MaskRom mode, you can try to :
<kevery> 2. if the U-Boot works, use 'emmc erase' cmd to erase data at 0x40 to force the chip enter Maskrom mode.
<kevery> 3. use 'ums' cmd in U-Boot to update file system based image.
<kevery> 1. use SD card instead(always make SD card has higher priority than eMMC at SPL or miniloader);
return0e has joined #linux-rockchip
return0e has quit [Ping timeout: 265 seconds]
<levd> Thanks kevery, the tips are very useful. I'll make a comparison between vendor and mainline to figure rockusb out.
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
vstehle has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
nsaenz has quit [Max SendQ exceeded]
return0e has joined #linux-rockchip
return0e has quit [Ping timeout: 268 seconds]
aballier has quit [Ping timeout: 245 seconds]
drrty has quit [Ping timeout: 245 seconds]
<levd> kevery: port some code from vendor u-boot to `evb-rk3399.c`, and turn on some DEBUG, the `rockusb 0 mmc 1` seems to have enter the loop. Yet the PC host does not see the gadget.
<levd> plz have a look at: https://pastebin.com/A4pHaPVF
<levd> also, `ums 0 mmc 1` have similar result.
kaspter has quit [Ping timeout: 246 seconds]
kaspter has joined #linux-rockchip
inode has joined #linux-rockchip
sphalerite has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 268 seconds]
ldevulder_ is now known as ldevulder
yann|work has quit [Ping timeout: 268 seconds]
stikonas_ has quit [Remote host closed the connection]
ldevulder_ has joined #linux-rockchip
return0e has joined #linux-rockchip
ldevulder has quit [Ping timeout: 240 seconds]
yann has joined #linux-rockchip
yann is now known as Guest40294
Guest40294 is now known as yann
field^Mop has joined #linux-rockchip
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 250 seconds]
camus is now known as kaspter
chewitt has joined #linux-rockchip
warpme_ has joined #linux-rockchip
aalm has quit [Quit: xyz 2.3]
vicencb has joined #linux-rockchip
ganbold has quit [Remote host closed the connection]
nashpa has quit [Ping timeout: 250 seconds]
ganbold has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 250 seconds]
nashpa has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
ldevulder_ is now known as ldevulder
matthias_bgg has quit [Quit: Leaving]
aalm has joined #linux-rockchip
ayaka has quit [Ping timeout: 240 seconds]
ayaka has joined #linux-rockchip
niceplaces has quit [Ping timeout: 265 seconds]
niceplace has joined #linux-rockchip
<j45> kevery: regarding using arm-trusted-firmware mainline, you said 'We need to update "CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000"'
<j45> what does it need to be updated to?
chewitt has quit [Quit: Adios!]
drrty has joined #linux-rockchip
drrty has quit [Quit: Leaving]
yann has quit [Ping timeout: 240 seconds]
<sigmaris> j45: I believe u-boot requires this patch https://patchwork.ozlabs.org/patch/1173719/
<sigmaris> which does fix the issue with ATF master + u-boot v2019.10 on my board
ayaka has quit [Ping timeout: 264 seconds]
matthias_bgg has joined #linux-rockchip
ayaka has joined #linux-rockchip
<j45> sigmaris: thanks ;-)
ayaka has quit [Ping timeout: 268 seconds]
ayaka has joined #linux-rockchip
matthias_bgg has quit [Quit: Leaving]
stikonas has joined #linux-rockchip
imsherlock has joined #linux-rockchip
imsherlock has quit [Client Quit]
chewitt has joined #linux-rockchip
jwerner_ has quit [Quit: leaving]
yann has joined #linux-rockchip
jwerner has joined #linux-rockchip
jwerner has quit [Client Quit]
jwerner has joined #linux-rockchip
aalm has quit [Ping timeout: 240 seconds]
aalm has joined #linux-rockchip
gnufan_home has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
chewitt has quit [Quit: Zzz..]
inode has quit [Quit: ]
gnufan_home has quit [Quit: Leaving.]
warpme_ has quit [Quit: Connection closed for inactivity]
field^Mop has quit [Ping timeout: 250 seconds]