# HG changeset patch # User Paul Boddie # Date 1435951227 -7200 # Node ID 7e61adf1e166e4ae48f43f0191ef5dccf72084b0 # Parent 217a8f6a3b1f61dc06c63066e89edc1bf416dc04 Experiment with loading the program at 0x80001000. diff -r 217a8f6a3b1f -r 7e61adf1e166 boot_usb --- a/boot_usb Fri Jul 03 19:27:44 2015 +0200 +++ b/boot_usb Fri Jul 03 21:20:27 2015 +0200 @@ -5,6 +5,6 @@ xbboot start1 0x80002000 xbboot get_info xbboot flush_cache -xbboot set_addr 0x80010000 +xbboot set_addr 0x80001000 xbboot bulk_write stage2/stage2.bin -xbboot start2 0x80010000 +xbboot start2 0x80001000 diff -r 217a8f6a3b1f -r 7e61adf1e166 stage2/Makefile --- a/stage2/Makefile Fri Jul 03 19:27:44 2015 +0200 +++ b/stage2/Makefile Fri Jul 03 21:20:27 2015 +0200 @@ -76,7 +76,7 @@ echo "Nothing else to clean." $(UIMAGE): $(PAYLOAD) - $(MKIMAGE) -A mips -O linux -T kernel -C none -a 0x80010000 -e 0x80010000 -n NanoPayload -d $(PAYLOAD) $(UIMAGE) + $(MKIMAGE) -A mips -O linux -T kernel -C none -a 0x80001000 -e 0x80001000 -n NanoPayload -d $(PAYLOAD) $(UIMAGE) $(PAYLOAD): $(TARGET) $(OBJCOPY) -O binary $(@:.bin=.elf) $@+ diff -r 217a8f6a3b1f -r 7e61adf1e166 stage2/head2.S --- a/stage2/head2.S Fri Jul 03 19:27:44 2015 +0200 +++ b/stage2/head2.S Fri Jul 03 21:20:27 2015 +0200 @@ -34,7 +34,7 @@ _start: /* Initialise the stack. */ - la $sp, 0x80080000 + la $sp, 0x80004000 /* Initialise the globals pointer. */ diff -r 217a8f6a3b1f -r 7e61adf1e166 stage2/stage2.ld --- a/stage2/stage2.ld Fri Jul 03 19:27:44 2015 +0200 +++ b/stage2/stage2.ld Fri Jul 03 21:20:27 2015 +0200 @@ -5,7 +5,7 @@ { /* Program memory section. */ - . = 0x80010000; + . = 0x80001000; .text2 : { *(.text*) } . = ALIGN(4);