[PATCH 0/7] rockchip: Add boot from USB OTG port
FUKAUMI Naoki
naoki at radxa.com
Fri May 9 01:38:06 CEST 2025
Hi Kever Yang,
On 5/8/25 12:43, Kever Yang wrote:
> Hi Arnaud,
>
> On 2025/5/7 23:31, Arnaud Patard wrote:
>> Hi,
>>
>> On Tue, 2025-05-06 at 15:53 +0800, Kever Yang wrote:
>>> Hi Naoki,
>>>
>>> On 2025/2/11 13:33, FUKAUMI Naoki wrote:
>>>> This patch series adds the ability to boot from the USB OTG port to
>>>> the RK3588, RK3568, RK3566, RK3399, RK3328, and RK3308.
>>>>
>>>> Use rkflashtool[1] or rkusbboot[2]
>>> Does these two tool have the same functionality? I don't know the
>>> second
>>> one :(
>>>
>>> And I know there is another tool named rkdeveloptool from rockchip.
>>>
>>>> to download TPL and SPL from
>>>> MASKROM mode, and dfu-util to download U-Boot from DFU mode.
>>> What's the main target for this patchset, boot from usb with ramboot
>>> support and without any eMMC/SD/SPI driver?
>>>
>> I can't talk for Naoki, but my use case is to test easily u-boot on my
>> rockchip platforms without having to flash u-boot or to have some
>> storage.
>
> Yes, I agree the usb boot+RAM boot can help u-boot developers.
>
> But this function can be done directly in BootRom mode with rockusb
> protocol;
>
> or add support for it in U-Boot Proper gadget(rockusb or DFU).
Does this mean I should use rockusb or DFU on U-Boot to test the new U-Boot?
>>> I would prefer to keep using one tool instead of two or more tools,
>>> so I
>>> don't think
>>>
>>> enable DFU in SPL is a good idea, using rockusb in SPL is better
>>> here.
>> To test u-boot, I'd like to use snagflash/snagboot as it's not rockchip
>> specific.
>
> Two more tools other than rkdeveloptool/rkflashtool/rkusbtool/rockusb :(
>
>
>> So, this means adding support for maskrom (which I've already
>> written) and rockusb protocols to it. With DFU in SPL support in u-
>> boot, this would mean nothing to do as the support for DFU is already
>> in snagboot/snagflash.
>
> I understand your requirement, but you didn't say why you need SPL DFU.
>
> There are two modes for usb download in rockchip platform:
>
> - Maskrom mode (in bootRom), may have speed limit due to bootRom driver
> setting,
>
> for download bootloader including U-Boot which size is not big;
>
> - Loader mode(in U-Boot), all the speed including CPU, eMMC has promote
> to performance mode,
>
> for download all the big size image including system and userdata.
>
> Of cause we can add any function to the SPL, and it's simple because it
> already in U-Boot,
>
> but do we really need it for all the user and product?
>
> We should keep the SPL simple and fast, and get into U-Boot proper
> quickly with full function.
I agree that SPL should be simple and require fewer tools.
Best regards,
--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
> Thank,
> - Kever
>>
>> Arnaud
>>
>>
>
More information about the U-Boot
mailing list