Skip to content

Commit

Permalink
move tftp address from 0x81000000 to 0x82000000
Browse files Browse the repository at this point in the history
to avoid having the compressed kernel being overwritten by the
uncompressed kernel as it is being lzma decompressed @ 0x80060000
since recent initramfs sizes have increased
  • Loading branch information
naf419 committed Apr 5, 2024
1 parent 9972d00 commit 1c88ce4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions v2_dynamic/shellcode.asm
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ loop:
li $a1, 0x0
la $a0, s_tftpboot
move $t9, $s0
jalr $ra, $t9 # run_command("tftpboot 0x81000000 initramfs-kernel.bin", 0)
jalr $ra, $t9 # run_command("tftpboot 0x82000000 initramfs-kernel.bin", 0)
li $a1, 0x0
la $a0, s_bootm
move $t9, $s0 # run_command("bootm 0x81000000", 0)
move $t9, $s0 # run_command("bootm 0x82000000", 0)
jalr $ra, $t9
b loop

Expand Down Expand Up @@ -84,11 +84,11 @@ s_setenv_ipaddr:

.balign 64
s_tftpboot:
.asciz "tftpboot 0x81000000 initramfs-kernel.bin"
.asciz "tftpboot 0x82000000 initramfs-kernel.bin"

.balign 64
s_bootm:
.asciz "bootm 0x81000000"
.asciz "bootm 0x82000000"

.balign 64
ram_start:
Expand Down

0 comments on commit 1c88ce4

Please sign in to comment.