This repository was archived by the owner on Jan 3, 2023. It is now read-only.
forked from sonoble/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[image]: build sonic-broadcom.raw image for sonic conversion from ftos (
sonic-net#901) 1. "make target/sonic-broadcom.raw" will create the compressed dd'able image. 2. This will also update the grub config files (device/dell/*/nos_to_sonic_grub.cfg) with the image versions.
- Loading branch information
1 parent
0a9d60e
commit 2d3b064
Showing
10 changed files
with
232 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
device/dell/x86_64-dell_s6100_c2538-r0/nos_to_sonic_grub.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# Grub config to launch SONiC | ||
# with ONIE boot option | ||
|
||
insmod serial | ||
# Initialize USB-Serial com2 port | ||
serial --unit=1 --speed=9600 | ||
#Serial port config;Defaults: COM1,9600 | ||
serial --unit=0 --speed=9600 | ||
terminal_output serial_com0 | ||
terminal_input serial_com0 | ||
#terminfo added to prevent text wrap issue. | ||
terminfo -g 80x100 serial_com0 | ||
terminfo -g 80x100 serial_com1 | ||
|
||
echo -n "Press Esc to stop autoboot ... " | ||
if sleep --verbose --interruptible 5 ; then | ||
insmod gzio | ||
insmod part_msdos | ||
insmod ext2 | ||
set root='(hd0,gpt8)' | ||
linux /image-%%IMAGE_VERSION%%/boot/vmlinuz-3.16.0-4-amd64 root=/dev/sda8 rw console=tty0 console=ttyS1,9600n8 loop=image-%%IMAGE_VERSION%%/fs.squashfs loopfstype=squashfs apparmor=1 security=apparmor | ||
initrd /image-%%IMAGE_VERSION%%/boot/initrd.img-3.16.0-4-amd64 | ||
boot | ||
else | ||
menuentry 'SONiC' { | ||
insmod gzio | ||
insmod part_msdos | ||
insmod ext2 | ||
set root='(hd0,gpt8)' | ||
linux /image-%%IMAGE_VERSION%%/boot/vmlinuz-3.16.0-4-amd64 root=/dev/sda8 rw console=tty0 console=ttyS1,9600n8 loop=image-%%IMAGE_VERSION%%/fs.squashfs loopfstype=squashfs apparmor=1 security=apparmor | ||
initrd /image-%%IMAGE_VERSION%%/boot/initrd.img-3.16.0-4-amd64 | ||
boot | ||
} | ||
|
||
menuentry 'ONIE' { | ||
insmod force10 | ||
onieboot | ||
} | ||
|
||
menuentry 'DELL-DIAG' { | ||
delldiagboot | ||
} | ||
fi |
44 changes: 44 additions & 0 deletions
44
device/dell/x86_64-dell_z9100_c2538-r0/nos_to_sonic_grub.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# Grub config to launch SONiC | ||
# with ONIE boot option | ||
|
||
insmod serial | ||
# Initialize USB-Serial com2 port | ||
serial --unit=1 --speed=9600 | ||
#Serial port config;Defaults: COM1,9600 | ||
serial --unit=0 --speed=9600 | ||
terminal_output serial_com0 | ||
terminal_input serial_com0 | ||
#terminfo added to prevent text wrap issue. | ||
terminfo -g 80x100 serial_com0 | ||
terminfo -g 80x100 serial_com1 | ||
|
||
echo -n "Press Esc to stop autoboot ... " | ||
if sleep --verbose --interruptible 5 ; then | ||
insmod gzio | ||
insmod part_msdos | ||
insmod ext2 | ||
set root='(hd0,gpt8)' | ||
linux /image-%%IMAGE_VERSION%%/boot/vmlinuz-3.16.0-4-amd64 root=/dev/sda8 rw console=tty0 console=ttyS1,9600n8 loop=image-%%IMAGE_VERSION%%/fs.squashfs loopfstype=squashfs apparmor=1 security=apparmor | ||
initrd /image-%%IMAGE_VERSION%%/boot/initrd.img-3.16.0-4-amd64 | ||
boot | ||
else | ||
menuentry 'SONiC' { | ||
insmod gzio | ||
insmod part_msdos | ||
insmod ext2 | ||
set root='(hd0,gpt8)' | ||
linux /image-%%IMAGE_VERSION%%/boot/vmlinuz-3.16.0-4-amd64 root=/dev/sda8 rw console=tty0 console=ttyS1,9600n8 loop=image-%%IMAGE_VERSION%%/fs.squashfs loopfstype=squashfs apparmor=1 security=apparmor | ||
initrd /image-%%IMAGE_VERSION%%/boot/initrd.img-3.16.0-4-amd64 | ||
boot | ||
} | ||
|
||
menuentry 'ONIE' { | ||
insmod force10 | ||
onieboot | ||
} | ||
|
||
menuentry 'DELL-DIAG' { | ||
delldiagboot | ||
} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# sonic broadcom raw image installer | ||
|
||
SONIC_RAW_IMAGE = sonic-broadcom.raw | ||
$(SONIC_RAW_IMAGE)_MACHINE = broadcom | ||
$(SONIC_RAW_IMAGE)_IMAGE_TYPE = raw | ||
$(SONIC_RAW_IMAGE)_DEPENDS += $(BRCM_OPENNSL_KERNEL) | ||
$(SONIC_RAW_IMAGE)_INSTALLS += $($(SONIC_ONE_IMAGE)_INSTALLS) | ||
$(SONIC_RAW_IMAGE)_DOCKERS += $(SONIC_INSTALL_DOCKER_IMAGES) | ||
SONIC_INSTALLERS += $(SONIC_RAW_IMAGE) |
Oops, something went wrong.