[PATCH v2 13/21] dts: mtmips: add alternative pinmux node for uart2
Stefan Roese
sr at denx.de
Mon Jan 20 10:21:35 CET 2020
Hi Mauro,
On 20.01.20 10:14, Mauro Condarelli wrote:
> SUCCESS!!!
Uffff. ;)
>> => usb start; load usb 0:1 85000000 u-boot-mtmips.bin
>> starting USB...
>> Bus ehci at 101c0000: pinctrl_select_state_full('ehci at 101c0000', 'default'):
>> USB EHCI 1.00
>> scanning bus ehci at 101c0000 for devices... 3 USB Device(s) found
>> scanning usb for storage devices... 1 Storage Device(s) found
>> 213156 bytes read in 11 ms (18.5 MiB/s)
>> => sf probe; sf update ${fileaddr} 0 ${filesize}
>> pinctrl_select_state_full('spi at b00', 'default'):
>> SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total
>> 16 MiB
>> device 0 offset 0x0, size 0x340a4
>> 213156 bytes written, 0 bytes skipped in 5.465s, speed 39918 B/s
>> => sf read 86000000 0 ${filesize}; cmp 86000000 ${fileaddr} ${filesize}
>> device 0 offset 0x0, size 0x340a4
>> SF: 213156 bytes @ 0x0 Read: OK
>> word at 0x860340a4 (0x2e220918) != word at 0x850340a4 (0x1ab4834a)
>> Total of 53289 word(s) were the same
>> => reset
>> resetting ...
>> pinctrl_select_state_full('syscon-reboot', 'default'):
>> pinctrl_select_state_full('system-controller at 0', 'default'):
>>
>> U-Boot SPL 2020.01-00643-g1262a953f1 (Jan 20 2020 - 09:33:36 +0100)
>> Trying to boot from NOR
>>
>>
>> U-Boot 2020.01-00643-g1262a953f1 (Jan 20 2020 - 09:33:36 +0100)
>>
>> CPU: MediaTek MT7628A ver:1 eco:2
>> Boot: DDR2, SPI-NOR 3-Byte Addr, CPU clock from XTAL
>> Clock: CPU: 580MHz, Bus: 193MHz, XTAL: 40MHz
>> Model: LinkIt-Smart-7688
>> DRAM: 128 MiB
>> Loading Environment from SPI Flash... SF: Detected w25q128 with page
>> size 256 Bytes, erase size 4 KiB, total 16 MiB
>> *** Warning - bad CRC, using default environment
>>
>> Net:
>> Warning: eth at 10110000 (eth0) using random MAC address - 72:2c:95:10:90:e9
>> eth0: eth at 10110000
>> =>
>>
> *** THANKS!! ***
>
> now I need to be able to duplicate this and, if needed, to modify.
> I tried using last Weijie patch-set, but I got the same error You reported,
> I "fixed" it removing `obj-y += time.o` from `arch/mips/cpu/Makefile`, but
> I was afraid to test results ;)
>
> What is the right sequence to get Your results?
>
> Note: I will need to have also working MMC/SD; in stock U-Boot I had to
> backport some drivers for that; is it supposed to work out-of-the-box
> (given right config, of course) in this version?
I've already attached the defconfig file you should use as a base for
your VoCore2 port in my last mail. Please find it attached again. Other
than that you need to apply all 21 patches of Weijie's latest patchset
and this one:
https://patchwork.ozlabs.org/patch/1215073/
Then start changing the configuration to your needs - port to the VoCore2
with its changes (MMC, SD etc). Most of this can be done by using the
RAM version now (again). There is no additional RAM booting target now
any more. You can use the normal U-Boot image for this now. Please note
the changes TEXT_BASE here. Its now 0x80200000.
HTH.
Thanks,
Stefan
-------------- next part --------------
CONFIG_MIPS=y
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_ENV_SIZE=0x4000
CONFIG_ENV_SECT_SIZE=0x10000
CONFIG_ENV_OFFSET=0x80000
CONFIG_SPL_SERIAL_SUPPORT=y
CONFIG_SPL_SYS_MALLOC_F_LEN=0x20000
CONFIG_NR_DRAM_BANKS=1
CONFIG_SPL=y
CONFIG_ARCH_MTMIPS=y
CONFIG_BOARD_LINKIT_SMART_7688=y
CONFIG_SPL_UART2_SPIS_PINMUX=y
CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
# CONFIG_MIPS_BOOT_ENV_LEGACY is not set
CONFIG_MIPS_BOOT_FDT=y
CONFIG_FIT=y
CONFIG_FIT_SIGNATURE=y
CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_OF_STDOUT_VIA_ALIAS=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y
CONFIG_BOARD_EARLY_INIT_F=y
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_HUSH_PARSER=y
CONFIG_CMD_LICENSE=y
# CONFIG_CMD_ELF is not set
# CONFIG_CMD_XIMG is not set
# CONFIG_CMD_CRC32 is not set
CONFIG_CMD_MEMINFO=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_GPIO=y
# CONFIG_CMD_LOADS is not set
CONFIG_CMD_MTD=y
CONFIG_CMD_PART=y
CONFIG_CMD_SPI=y
CONFIG_CMD_USB=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_TIME=y
CONFIG_CMD_FS_GENERIC=y
# CONFIG_DOS_PARTITION is not set
CONFIG_DEFAULT_DEVICE_TREE="linkit-smart-7688"
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_DM=y
# CONFIG_DM_DEVICE_REMOVE is not set
CONFIG_BLK=y
CONFIG_LED=y
CONFIG_LED_BLINK=y
CONFIG_LED_GPIO=y
CONFIG_MTD=y
CONFIG_SPI_FLASH_GIGADEVICE=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_SPI_FLASH_SPANSION=y
CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SPI_FLASH_MTD=y
CONFIG_MT7628_ETH=y
CONFIG_PHY=y
CONFIG_MT76X8_USB_PHY=y
CONFIG_SPI=y
CONFIG_MT7621_SPI=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y
CONFIG_USB_STORAGE=y
CONFIG_FS_EXT4=y
CONFIG_FS_FAT=y
CONFIG_LZMA=y
CONFIG_LZO=y
More information about the U-Boot
mailing list