Commit graph

10340 commits

Author SHA1 Message Date
bunnie
dc0244ca35 cleanup init stuff now that args are mapped into memory 2024-05-02 22:08:48 +08:00
bunnie
61128cb25f remove swap init call, as it is no longer needed 2024-05-02 22:08:08 +08:00
bunnie
39a427e1b0 improve debug output 2024-05-01 14:27:31 +08:00
bunnie
5f425ebc56 expand flags scope and fix swap test 2024-05-01 14:27:06 +08:00
bunnie
3bd6b8b645 Merge branch 'swap-kernel' of github.com:betrusted-io/xous-core into swap-kernel 2024-05-01 03:53:34 +08:00
bunnie
2118a6abf5 add swap flags to debug output 2024-04-30 12:53:21 -07:00
bunnie
bed33393ff
Merge pull request #531 from rowr111/main
documentation for modals.show_notification
2024-04-30 12:08:39 -07:00
bunnie
9209575c39
Merge pull request #532 from betrusted-io/fix-elf
Fix elf
2024-04-30 11:27:27 -07:00
bunnie
9499a41739 fix padding computations in ELF file read-in
Not sure how this even worked in the first place....I think we
always just got lucky with the size of .gcc_except_table. However,
something changed in the last rustc update that causes this section
to align to a 256-byte boundary instead of a 4-byte boundary, which
exposes downstream alignment issues.

This patch now captures the actual offset alignment + padding,
which is somewhat complicated by the fact that we throw away
the first section (not sure why??? it doesn't seem to have
a valid name or header, but the first 0x114 bytes are non-existent)
so we have to factor this into all the downstream padding efforts.
2024-05-01 02:19:10 +08:00
bunnie
9ca720f188 add an assert to sanity-check that IniF sections are aligned
There is no hope for success if the alignment of an IniF is not
aligned, since we directly map the data into memory.
2024-05-01 02:18:29 +08:00
Jeanie
68c2a06682
Merge branch 'betrusted-io:main' into main 2024-04-30 22:58:12 +09:00
Jeanie
ed540d756a update image location 2024-04-30 22:57:47 +09:00
bunnie
88a9854e54 add swap flags to debug output 2024-04-30 18:35:54 +08:00
bunnie
85f3855d7b
Merge pull request #530 from betrusted-io/cram-bringup
Cramium-soc MPW bringup
2024-04-30 02:50:04 -07:00
bunnie
e201574eb8 put the verification in the right area 2024-04-30 17:47:57 +08:00
bunnie
c68e351bcc incorporate latest changes into the swap init routine 2024-04-30 17:47:36 +08:00
bunnie
7ae34ed717 add features for alt spi channel on bringup 2024-04-30 17:14:22 +08:00
bunnie
1810880723 add SPIM loader bringup code 2024-04-30 17:13:42 +08:00
bunnie
fd9f85ef58 adjust speeds to reflect actual spec 2024-04-30 17:13:21 +08:00
bunnie
7c0aa1bcbe add debugging support to HAL lib
tries to do the right thing in both Xous and bare metal environments,
although, xous formatting might be a little funky.
2024-04-30 17:12:41 +08:00
bunnie
1b4e6b310a SPIM bug fixes
- improve visibility of core structures for debugging
- add qpi-mode ID readouts
- support different commands for flash/ram ID readout
- fix bit-shift bug on cmd (docus say to "align to MSB" but
I don't know what MSB they are talking about, it only works if
you align the commands to LSB).
2024-04-30 17:11:02 +08:00
bunnie
436be7ae9c fix masking bug in iox implementation 2024-04-30 17:10:28 +08:00
bunnie
34489d5f94 raise visibility of internal ifram structures
allows for abstraction violations but at this stage of debugging,
we'll need it.
2024-04-30 17:08:09 +08:00
bunnie
c2c91a2ee5 placeholder for spim tester flags 2024-04-30 17:03:36 +08:00
bunnie
4499097c74 add remainder of test code for spim 2024-04-29 04:13:01 +08:00
bunnie
c1b6f479d4 add some test code for SPIM interface 2024-04-29 04:10:54 +08:00
bunnie
31c51a2a7f add spim-test flag for loader 2024-04-29 04:09:53 +08:00
bunnie
e5dfd14daa fix bugs found by rustc
thanks, rustc, for finding these bugs!

this is why we cleanup warnings regularly.
2024-04-29 04:08:52 +08:00
bunnie
0131315e3a cleanup trng warnings -- it's going to be a while before this is fixed
I think I may have to be patient on waiting for docus on how to
tune the trng, so, turning off these warnings for now. trng tuning
will be "an event", I expect.
2024-04-29 04:07:52 +08:00
bunnie
39cf50aad6 cleanup unused vars, stripped out in previous edits 2024-04-29 04:07:28 +08:00
bunnie
7af47ec260 cleanup warnings, remove dead code 2024-04-29 04:07:08 +08:00
bunnie
f86b51a3b2 cleanup warning 2024-04-29 04:06:52 +08:00
bunnie
779d3c7c19 add pio elements to loader in lockfile 2024-04-29 03:45:03 +08:00
bunnie
506bcdc7b9 add pio tester feature flag 2024-04-29 03:44:46 +08:00
bunnie
431ca216f9 improve visibility of hal elements 2024-04-29 03:43:03 +08:00
bunnie
0adb20b3d8 add a test stub for the quantum timer in the loader
a little easier to do low level peripheral testing here than in
the kernel
2024-04-29 03:42:34 +08:00
bunnie
fa242696e5 fix the quantum timer service 2024-04-29 03:41:15 +08:00
bunnie
cb43368e7a add the quantum timer feature by default to the cramium config 2024-04-29 03:40:47 +08:00
bunnie
4926e61fec cleanup mut warning 2024-04-28 02:57:44 +08:00
bunnie
e3e3b3125c cleanup warnings 2024-04-28 02:57:24 +08:00
bunnie
863f17652d broaded scope of conditional compilation 2024-04-28 02:57:04 +08:00
bunnie
588e1cf9f1 add some debugging, convenience routines to trng driver 2024-04-28 02:44:10 +08:00
bunnie
fcf3dfb4cd adjust serial port for console 2024-04-28 02:43:43 +08:00
bunnie
07c9890919 fix location of kernel; attempt to debug loader 2024-04-28 02:43:11 +08:00
bunnie
36534b4e3a frequency now confirmed 2024-04-28 02:42:18 +08:00
bunnie
c57debcf1c adjust location of fontmap to match latest build 2024-04-28 02:41:58 +08:00
bunnie
ecf2396d0c put debug prints behind debug flags 2024-04-28 02:41:29 +08:00
bunnie
ced0b09881 add the console app to the default build 2024-04-28 02:41:06 +08:00
bunnie
c491c63e42 add PLL computation code 2024-04-27 22:24:27 +08:00
bunnie
2702b94c93 include signature block in kernel offset constant 2024-04-26 18:20:14 +08:00