12-13-2020 09:38 PM - edited 07-05-2021 12:54 PM
Please help me to set default board profile in init
AP1562E , on boot show
Please choose one of the following boards:
1. 3K
2. 2K (new)
3. 2K (proto)
4. Milos
5. 2KH
6. 3KVE (v-sku)
7. 3KH/3KA/4K
8. Duplo
init>>
if i press 4 - it boot ok
How to set default board profile ?
i don't have prog_pid in available command
PLEASE Help
BootROM - 1.78
Booting from SPI flash, Secure mode
BootROM: RSA Public key verification PASSED
BootROM: CSK block signature verification PASSED
BootROM: Boot header signature verification PASSED
BootROM: Box ID verification PASSED
BootROM: JTAG is disabled
General initialization - Version: 1.0.0
Detected Device ID 6920
Master bootloder version 1.34
Please choose one of the following boards:
1. 3K
2. 2K (new)
3. 2K (proto)
4. Milos
5. 2KH
6. 3KVE (v-sku)
7. 3KH/3KA/4K
8. Duplo
after i press 4
init>> High speed PHY - Version: 2.0
BoardId = 0x23board SerDes lanes topology details:
| Lane # | Speed| Type |
------------------------------|
| 1 | 0 | SGMII1 |
| 2 | 5 | PCIe1 |
| 4 | 5 | PCIe2 |
-------------------------------
:** Link is Gen1, check the EP capability
PCIe, Idx 1: Link upgraded to Gen2 based on client cpabilities
:** Link is Gen1, check the EP capability
PCIe, Idx 2: Link upgraded to Gen2 based on client cpabilities
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
BootROM: Boot image signature verification PASSED
____ _
/ ___|(_) ___ ___ ___
| | | |/ __| / __|/ _ \
| |___ | |\__ \| (__| (_) |
\____||_||___/ \___|\___/
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** LOADER **
U-Boot 2013.01-gacaad15 (Aug 18 2019 - 20:12:19) SDK version: 2015_T2.0p10
Board: Milos
SoC: MV88F6920 Rev A1
running 2 CPUs
CPU: ARM Cortex A9 MPCore (Rev 1) LE
CPU 0
CPU @ 1800 [MHz]
L2 @ 900 [MHz]
TClock @ 250 [MHz]
DDR4 @ 900 [MHz]
DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM: 1 GiB
RST I2C0
NAND: 256 MiB
SF: Detected N25Q32A with page size 64 KiB, total 4 MiB
*** Warning - bad CRC, using default environment
PCI-e 1 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
PCI-e 2 (IF 1 - bus 1) Root Complex Interface, Detected Link X1, GEN 2.0
Map: Code: 0x3fed9000:0x3ffadc40
BSS: 0x3ffef704
Stack: 0x3f9c8f20
Heap: 0x3f9c9000:0x3fed9000
U-Boot Environment: 0x00100000:0x00110000 (SPI)
Board configuration:
| port | Interface | PHY address |
|--------|------------|--------------|
| egiga1 | SGMII | 0x01 |
SFP not detected, enable RJ45
Net: , egiga1 [PRIME]
Hit ESC key to stop autoboot: 0
Hit ESC key - to go u-bot
u-boot>>
u-boot>> version
U-Boot 2013.01-gacaad15 (Aug 18 2019 - 20:12:19) SDK version: 2015_T2.0p10
arm-openwrt-linux-uclibcgnueabi-gcc (OpenWrt GCC 4.7.1 r48430) 4.7.1
GNU ld (GNU Binutils) 2.24.0
u-boot>> dump_board_env
SF: Detected N25Q32A with page size 64 KiB, total 4 MiB
Board env is unconfigured
u-boot>>
How to set board env ?
resetenv - i try this, not working
full help command list in attach
Solved! Go to Solution.
03-12-2021 06:10 AM
small add
one more solution
bubt - bubt - Burn an image on the Boot flash device. - can do magic to downgrade bootloader (you still need oldone extracted from software tar)
07-19-2021 06:13 PM
Question for you kholod,
Which file from .tar have you flashed.
there a part.bin and 2 files with .img wishing the tar file. which one you loved and how since bubt will ask by default for
"u-boot.bin"
11-21-2021 11:49 AM
Thanks for post.
Had the same trouble couple days ago
1562e
BootROM 1.78
Master Bootloader1.24
without downgrade I used your idea:
u-boot>>progpid milos
solved fine.
Thanks
07-15-2022 05:22 PM
Same question as above
My steps:
extracted btldr.img from ap3g3-k9w8-tar.153-3.JD.tar file renamed it to "u-boot.bin" and copied to tftp server. Than from u-boot I run:
u-boot>> bubt
Using default filename "u-boot.bin"
Using egiga2 device
TFTP from server 10.xx; our IP address is 10.xx
Filename 'u-boot.bin'.
Load address: 0x2000000
Loading: ########################################
4.9 MiB/s
done
Bytes transferred = 585160 (8edc8 hex)
Checking file size: [Done]
Override Env parameters to default? [y/N] y
Erasing 0x100000 - 0x110000:. [Done]
Erasing 0x0 - 0x100000: ........ [Done]
Writing image to flash:................. [Done]
u-boot>>
u-boot>>
u-boot>> reset
resetting ...
BootROM - 1.78
Booting from SPI flash, Secure mode
BootROM: Bad header at offset D4000000
BootROM: RSA Public key verification PASSED
BootROM: CSK block signature verification PASSED
BootROM: Boot header signature verification PASSED
BootROM: Box ID verification PASSED
BootROM: JTAG is disabled
General initialization - Version: 1.0.0
Detected Device ID 6920
Master main header corrupted
Shadow bootloder version 1.40
As you can see this ends with the master bootloader being corrupt and it using the backup bootloader. Can you maybe point me in the right direction?
07-16-2022 01:40 AM
Please explain what you are trying to do ? final goal ? current problem ?
07-16-2022 02:09 AM
My guess, 1.40 very new, may be checking some signature. So, try to downgrade to version not too old. Downgrade step-by step, checking what is version off bootloader you are trying to flash
Will be not surprised if from some high version downgrade not possible... can't comment this as i not try to do this from newer than 1.34
And actually i used different method... check log in resolution message of topic.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide