| 70664e19 | 03-May-2020 |
Ye Li <ye.li@nxp.com> |
UPSTREAM: net: Add eth phy generic driver for shared MDIO
For dual ethernet controllers, the HW design may connect ETH phys to one MDIO ports. So two different ethernet drivers have to share MDIO bu
UPSTREAM: net: Add eth phy generic driver for shared MDIO
For dual ethernet controllers, the HW design may connect ETH phys to one MDIO ports. So two different ethernet drivers have to share MDIO bus. Since two ethernet drivers are independent, we can't ensure their probe order.
To resolve this problem, introduce an eth phy generic driver and uclass.
After eth-uclass binds, we search the mdio node and binds the phy node with the eth-phy-generic driver.
When one eth driver get its phy device, the parent of phy device will probe prior than phy device. So this ensure the eth driver ownes the MDIO bus will be probed before using its MDIO.
Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: Ice83493e9e1caf3842f9ce0c129e29ad46cc0532
show more ...
|
| 9ec8daff | 23-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Handle all commands and variables for "fastboot flashall"
Implement the rest of the variables and fastboot commands for flashall. For A/B related commands, slot A is always selected.
Bug: 31887729
Handle all commands and variables for "fastboot flashall"
Implement the rest of the variables and fastboot commands for flashall. For A/B related commands, slot A is always selected.
Bug: 31887729 Test: "fastboot flashall" does not result in any unknown commands or variables
Change-Id: Iec794a0a0805aeb744157ab25b417443a3fc7f5a
show more ...
|
| aba554cc | 23-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Handle slow MMC writes
Flashing a 400Mb sparse system image takes ~10 minutes. The fastboot UDP protocol expects a response within 1 minute, so during long flash operations, the device must send fas
Handle slow MMC writes
Flashing a 400Mb sparse system image takes ~10 minutes. The fastboot UDP protocol expects a response within 1 minute, so during long flash operations, the device must send fastboot "INFO" packets.
This patch does the following: - Separate large writes into writes of size FASTBOOT_MAX_BLK_WRITE. This parameter was tuned by hand to result in a ~10 second write. - Keep a timer and send an INFO packet every 30 seconds. - Adjust the sequence number in the header of the fastboot OKAY packet to account for any INFO packets sent during flashing. - Reduce busywaiting in the bcm2835 MMC driver. This change is based on what the kernel does, and doesn't seem to corrupt the MMC. Without this change, "flashall" takes 25 minutes.
Bug: 31887729 Test: "fastboot -s udp:$RPI_IP flashall" works, rpi3 boots - Compute CRC checksum over every write to verify written data was not corrupted.
Change-Id: Ib17ef6a85715705a8b5f722a8b7d3e5fd1a6625d
show more ...
|
| 0eda6822 | 10-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Implement fastboot continue, reboot, reboot-bootloader, boot.
Add functions to respond to fastboot continue, reboot, and reboot-bootloader. Continue continues the normal android boot process. Reboot
Implement fastboot continue, reboot, reboot-bootloader, boot.
Add functions to respond to fastboot continue, reboot, and reboot-bootloader. Continue continues the normal android boot process. Reboot-bootloader writes a message to the start of the fastboot buffer, to be parsed at the start of the android boot process. Boot boots the previously downloaded image from memory.
Bug: 31887729 Test: - Sending "continue" boots into android. - Sending "reboot" reboots the device. - Sending "reboot-bootloader" reboots the device, and the message persists in memory. - Sending "boot boot.img" boots into kernel.
Change-Id: I8b14724de4612450ccc382bb7532edb993e6e8a4
show more ...
|
| 8b464fa9 | 09-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb_flash and fb_erase are essentially wrappers for fb_mmc_flash_write and fb_mmc_erase, which are implemented in common/fb_mmc.c.
Added common/fb_common.c, where fastboot_okay/fail are implemented. common/fb_mmc.c assumes fasboot_okay() and fastboot_fail() are implemented, but they were tied to the fastboot USB implementation. This refactor adds the response string as a parameter to fastboot_okay/fail, instead of modifying a global.
Bug: 31887729 Test: FLASH: - Create file "foo" containing 2048 chars = "-" - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP flash misc foo" from host - From U-boot console, read into memory the first 4 blocks from misc partition, observe each byte is "-".
ERASE - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP erase misc" from host - From U-boot console, read into memory many blocks from misc partition, observe each byte is 0x00
Configs that use fastboot USB implementation still build.
Change-Id: I5bd54868990bd9d5736d0969b3db240c2926eeec
show more ...
|
| 45930fc1 | 08-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Implement fastboot download.
Adds function to respond to fastboot download, and copy downloaded image to buffer in RAM.
Bug: 31887729 Test: - Create file "foo" containing 2048 chars = "-" - S
Implement fastboot download.
Adds function to respond to fastboot download, and copy downloaded image to buffer in RAM.
Bug: 31887729 Test: - Create file "foo" containing 2048 chars = "-" - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP flash boot foo" from host - Observe that rpi received 2048 bytes of data, and CONFIG_FASTBOOT_BUF_ADDR contains "-"*2048
Change-Id: Ib42378448627b48c629af89f39a0394db93c3824
show more ...
|
| 02ad7892 | 08-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Handle Fastboot packet types, implement getvar.
This patch adds functionality to parse Fastboot packet types, and send a response to getvar commands.
Bug: 31887729 Test: Responds to getvar commands
Handle Fastboot packet types, implement getvar.
This patch adds functionality to parse Fastboot packet types, and send a response to getvar commands.
Bug: 31887729 Test: Responds to getvar commands with correct values for variables version, bootloader-version, downloadsize, serialno.
Change-Id: I752a6119d3019745f20defbb1f0c13dba1f24221
show more ...
|
| 704f3acf | 21-Jul-2017 |
Denis Pynkin <denis.pynkin@collabora.com> |
net: Use packed structures for networking
PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled by default for '-O2':
BOOTP broadcast 1 data abort pc : [<8ff8bb30>] lr : [<0
net: Use packed structures for networking
PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled by default for '-O2':
BOOTP broadcast 1 data abort pc : [<8ff8bb30>] lr : [<00004f1f>] reloc pc : [<17832b30>] lr : [<878abf1f>] sp : 8f558bc0 ip : 00000000 fp : 8ffef5a4 r10: 8ffed248 r9 : 8f558ee0 r8 : 8ffef594 r7 : 0000000e r6 : 8ffed700 r5 : 00000000 r4 : 8ffed74e r3 : 00060101 r2 : 8ffed230 r1 : 8ffed706 r0 : 00000ddd Flags: nzcv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
Core reason is usage of structures for network headers without packed attribute.
Reviewed-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|