08f3b9720b
summary of E530 platfrom: - CPU: CTC5236, arm64 - LAN switch chip set: CENTEC CTC7132 (TsingMa). TsingMa is a purpose built device to address the challenge in the recent network evolution such as Cloud computing. CTC7132 provides 440Gbps I/O bandwidth and 400Gcore bandwidth, the CTC7132 family combines a feature-rich switch core and an embedded ARM A53 CPU Core running at 800MHz/1.2GHz. CTC7132 supports a variety of port configurations, such as QSGMII and USXGMII-M, providing full-rate port capability from 100M to 100G. - device E530-48T4X: 48 * 10/100/1000 Base-T Ports, 4 * 10GE SFP+ Ports. - device E530-24X2C: 24 * 10 GE SFP+ Ports, 2 * 100GE QSFP28 Ports. add new files in three directories: device/centec/arm64-centec_e530_24x2c-r0 device/centec/arm64-centec_e530_48t4x_p-r0 platform/centec-arm64 Co-authored-by: taocy <taocy2@centecnetworks.com> Co-authored-by: Gu Xianghong <gxh2001757@163.com> Co-authored-by: shil <shil@centecnetworks.com>
47 lines
1.1 KiB
Plaintext
Executable File
47 lines
1.1 KiB
Plaintext
Executable File
# Copyright (C) Centec Inc
|
|
|
|
# over ride default behaviour
|
|
|
|
echo "Preparing for installation ... "
|
|
|
|
demo_mnt=/mnt
|
|
|
|
hw_load() {
|
|
echo "ext4load mmc 0:2 \$loadaddr onie_uimage"
|
|
}
|
|
|
|
create_partition() {
|
|
echo y | mkfs.ext4 -L CTC-SYSTEM /dev/mmcblk0p1
|
|
}
|
|
|
|
mount_partition() {
|
|
echo "mount flash"
|
|
mount -t ext4 /dev/mmcblk0p1 $demo_mnt
|
|
}
|
|
|
|
bootloader_menu_config() {
|
|
mkdir -p $demo_mnt/boot
|
|
mount -t ext4 /dev/mmcblk0p2 $demo_mnt/boot
|
|
|
|
rm $demo_mnt/boot/centec-e530.itb -rf
|
|
cp $demo_mnt/$image_dir/boot/sonic_arm64.fit $demo_mnt/boot/centec-e530.itb
|
|
cd $demo_mnt/boot
|
|
rm onie_uimage -rf
|
|
ln -s centec-e530.itb onie_uimage
|
|
cd -
|
|
sync
|
|
umount -l $demo_mnt/boot
|
|
|
|
hw_load_str="$(hw_load)"
|
|
|
|
(cat <<EOF
|
|
hw_load $hw_load_str
|
|
copy_img echo "Loading Demo $platform image..." && run hw_load
|
|
nos_bootcmd run copy_img && setenv bootargs quiet console=\$consoledev,\$baudrate root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 loopfstype=squashfs loop=$image_dir/fs.squashfs && bootm \$loadaddr
|
|
EOF
|
|
) > /tmp/env.txt
|
|
|
|
fw_setenv -f -s /tmp/env.txt
|
|
fw_setenv -f image_dir $image_dir
|
|
}
|