[linux-sunxi] Re: [PATCH] phy: sun4i-usb: Align H6 initialization logic with the kernel

2020-06-01 Thread Jagan Teki
On Wed, May 13, 2020 at 2:22 AM Roman Stratiienko
 wrote:
>
> H6 SOC needs additional initialization of PHY registers. Corresponding
> changes can be found in the kernel patch [1].
>
> Without this changes there is no enumeration of 'musb' gadget.
>
> [1] - 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ae409cc7c3cdb9ac4a1dba3eae70efec3d6b6c79
>
> Fixes: 35fa673e0e5f ("sunxi: phy: Add USB PHY support for Allwinner H6")
> Signed-off-by: Roman Stratiienko 
> ---

Applied to u-boot-sunxi/master

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/CAMty3ZBasHXYcHqwJGgDaBsnki7PS8FcvA%2BOr5_N2ZcmS9AF7w%40mail.gmail.com.


Re: [linux-sunxi] Boot to FEL mode with fastboot or adb shell

2020-06-01 Thread Arti Zirk
On T, 2020-05-26 at 15:21 -0700, Matt Krenik wrote:
> Is there a way that I can overwrite or corrupt the bootloader
> partition from the adb shell or with a fastboot command so that it
> will fail on the next reboot and enter FEL mode?

You could simply zero out the Initial SPL Loader

dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=40

Or you could write the special fel-boot sd card image into the internal
storage https://linux-sunxi.org/FEL#Through_a_special_SD_card_image

Mainline U-Boot defines a nice partition table[1] that allows you to
write the fel-sdboot image file[2] quite easily by running following
commands

fastboot oem format
fastboot flash loader1 fel-sdboot.sunxi
fastboot reboot

And after that boot with a clean U-Boot via FEL[3]

Nicer options would be to add a custom boot-to-fel oem command to u-
boot fastboot implementation[4]


But I think the best way would be to figure out a way to trigger FEL
via the FEL/UBOOT pin because it will be more reliable those hackish
methods.


[1]: 
https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/include/configs/sunxi-common.h#L467
[2]: 
https://github.com/linux-sunxi/sunxi-tools/blob/master/bin/fel-sdboot.sunxi
[3]: https://plaes.org/technotes/embedded-systems/sunxi-notes/
[4]: 
https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/drivers/fastboot/fb_command.c

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/a91316cf023da1a29770a65bfa5c8ce48b551532.camel%40gmail.com.