Skip to content

Commit

Permalink
gr740 no root
Browse files Browse the repository at this point in the history
  • Loading branch information
lukileczo committed Nov 19, 2024
1 parent 4cb6dec commit 8c96571
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions _projects/sparcv8leon-gr740-mini/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,8 @@

#define FTMCTRL_BASE 0xff903000


#define RAM_ADDR 0x07000000
#define RAM_BANK_SIZE 0x01000000

#endif
2 changes: 1 addition & 1 deletion _targets/sparcv8leon/gr740/build.project
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export PORTS_CURL=n
#
export SIZE_PAGE=$((0x1000))

export BOOT_DEVICE="flash0" # Default boot device
export BOOT_DEVICE="ram0" # Default boot device
export MAGIC_USER_SCRIPT="dabaabad" # User script magic value


Expand Down
2 changes: 1 addition & 1 deletion _targets/sparcv8leon/gr740/preinit.plo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contents:
- map sdram 0x00000000 0x07ffffff rwx
- map flash 0xc0000000 0xcfffffff rwx
- console 0.0
- phfs flash0 2.0 raw
- phfs ram0 4.0 raw

- if: '{{ not(env.RAM_SCRIPT) | default(false) }}'
action: call
Expand Down
7 changes: 3 additions & 4 deletions _targets/sparcv8leon/gr740/user.plo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ is_relative: True

contents:
- kernel {{ env.BOOT_DEVICE }}
- app {{ env.BOOT_DEVICE }} -x dummyfs;-N;devfs;-D sdram sdram
- app {{ env.BOOT_DEVICE }} -x grlib-multi sdram sdram
- app {{ env.BOOT_DEVICE }} -x ftmctrl-flash;-r;rootfs:jffs2 sdram sdram
- app {{ env.BOOT_DEVICE }} -x psh;-i;/etc/rc.psh sdram sdram
- app {{ env.BOOT_DEVICE }} -x dummyfs sdram sdram
- app {{ env.BOOT_DEVICE }} -x grlib-uart sdram sdram
- app {{ env.BOOT_DEVICE }} -x psh sdram sdram
- wait 500
- go!

0 comments on commit 8c96571

Please sign in to comment.