]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/log
hercules2020/jailhouse-build.git
5 years agoUpdate Jailhouse submodule (memguard test inmate) tx2
Michal Sojka [Wed, 28 Nov 2018 12:44:52 +0000 (13:44 +0100)]
Update Jailhouse submodule (memguard test inmate)

5 years agoFix the memguard test
Michal Sojka [Wed, 28 Nov 2018 12:04:28 +0000 (13:04 +0100)]
Fix the memguard test

5 years agojailhouse-test: Add test for non-overflowed memory statistics
Michal Sojka [Wed, 28 Nov 2018 12:02:42 +0000 (13:02 +0100)]
jailhouse-test: Add test for non-overflowed memory statistics

Currently, this test fails.

5 years agoInstall also all inmate binaries
Michal Sojka [Mon, 19 Nov 2018 12:08:51 +0000 (13:08 +0100)]
Install also all inmate binaries

5 years agomemguard-test: Do not intermix test results from prallel threads
Michal Sojka [Tue, 6 Nov 2018 13:11:42 +0000 (14:11 +0100)]
memguard-test: Do not intermix test results from prallel threads

5 years agoRemove long blocking memguard test and switch to memguard jailhouse branch
Michal Sojka [Mon, 5 Nov 2018 10:28:29 +0000 (11:28 +0100)]
Remove long blocking memguard test and switch to memguard jailhouse branch

5 years agoUpdate memgaurd test and add test for throttling correctness
Michal Sojka [Mon, 5 Nov 2018 09:07:06 +0000 (10:07 +0100)]
Update memgaurd test and add test for throttling correctness

5 years agoFixes to memguard-test
Michal Sojka [Thu, 1 Nov 2018 21:27:05 +0000 (22:27 +0100)]
Fixes to memguard-test

5 years agoMake memguard-test multithreaded - naive
Joel Matejka [Thu, 1 Nov 2018 16:39:50 +0000 (17:39 +0100)]
Make memguard-test multithreaded - naive

5 years agomemguard-test: Implement full wvtest protocol
Michal Sojka [Thu, 1 Nov 2018 13:40:05 +0000 (14:40 +0100)]
memguard-test: Implement full wvtest protocol

5 years agoAdd more memguard checks
Michal Sojka [Thu, 1 Nov 2018 13:33:28 +0000 (14:33 +0100)]
Add more memguard checks

5 years agomemguard-test: Add wvtest protocol support
Michal Sojka [Thu, 1 Nov 2018 13:23:30 +0000 (14:23 +0100)]
memguard-test: Add wvtest protocol support

5 years agoRework memguard test
Michal Sojka [Wed, 31 Oct 2018 23:57:31 +0000 (00:57 +0100)]
Rework memguard test

5 years agoUpdate memguard-test
Michal Sojka [Tue, 30 Oct 2018 16:17:18 +0000 (17:17 +0100)]
Update memguard-test

5 years agoAllow easy installation of perf
Michal Sojka [Tue, 30 Oct 2018 16:17:00 +0000 (17:17 +0100)]
Allow easy installation of perf

5 years agoTest memguard call return value.
Joel Matejka [Mon, 29 Oct 2018 18:09:20 +0000 (19:09 +0100)]
Test memguard call return value.

5 years agoCurrent memguard version + updated test
Michal Sojka [Mon, 29 Oct 2018 09:28:54 +0000 (10:28 +0100)]
Current memguard version + updated test

5 years agoMakefile: Fix jailhouse-remote-deploy and add memguard-test to deploy target
Michal Sojka [Fri, 26 Oct 2018 05:14:24 +0000 (07:14 +0200)]
Makefile: Fix jailhouse-remote-deploy and add memguard-test to deploy target

5 years agoSimple memguard test
Joel Matejka [Thu, 25 Oct 2018 09:47:51 +0000 (11:47 +0200)]
Simple memguard test

5 years agoREADME: Fix typos
Michal Sojka [Sun, 26 Aug 2018 21:50:08 +0000 (23:50 +0200)]
README: Fix typos

5 years agoRename README
Michal Sojka [Sun, 26 Aug 2018 21:46:53 +0000 (23:46 +0200)]
Rename README

5 years agodeb: Do not start jailhouse automatically
Michal Sojka [Sun, 26 Aug 2018 21:27:46 +0000 (23:27 +0200)]
deb: Do not start jailhouse automatically

When jailhouse is started automatically (relatively early) during the
boot, something in the user space reads from 0xf0000 (see below),
which is not allowed by Jailhouse memory map. So far it is not clear
what it is and what it tries to read. According to TX2 memory map,
nothing should be there.

    Unhandled data read at 0xf0000(1)

    FATAL: unhandled trap (exception class 0x24)
    Cell state before exception:
     pc: 0000007f9a22fb40   lr: 000000557e594360 spsr: 20000000     EL0

5 years agoAllow building a Debian package from the repository
Michal Sojka [Fri, 24 Aug 2018 08:28:09 +0000 (10:28 +0200)]
Allow building a Debian package from the repository

5 years agojailhouse: Give Linux access to PWM4 register
Michal Sojka [Sun, 26 Aug 2018 20:23:50 +0000 (22:23 +0200)]
jailhouse: Give Linux access to PWM4 register

This is needed for jetson-clock.sh script to work.

5 years agoDocument how to compile jailhouse on TX2
Michal Sojka [Fri, 24 Aug 2018 08:28:09 +0000 (10:28 +0200)]
Document how to compile jailhouse on TX2

5 years agoRename build/linux-4.4 to build/kernel-4.4 0.0
Michal Sojka [Fri, 24 Aug 2018 11:41:04 +0000 (13:41 +0200)]
Rename build/linux-4.4 to build/kernel-4.4

TX2 sound kernel modules have kernel-4.4 somehow hardcoded and the compiled
object files are always put there. To make the directory structure less
confusing, let's put everything to kernel-4.4.

5 years agoUpdate jailhouse version
Michal Sojka [Wed, 1 Aug 2018 07:06:09 +0000 (09:06 +0200)]
Update jailhouse version

5 years agoUpdate buildroot .config
Michal Sojka [Mon, 30 Jul 2018 11:37:11 +0000 (13:37 +0200)]
Update buildroot .config

5 years agoAdd my boot-nfs script
Michal Sojka [Mon, 30 Jul 2018 11:33:47 +0000 (13:33 +0200)]
Add my boot-nfs script

It boots locally built kernel with root filesystem over NFS. To
install Jailhouse to NFS-booted TX, run

    make jailhouse-install-remote

5 years agoMakefile: Add target for remote Jailhouse installation
Michal Sojka [Thu, 26 Jul 2018 07:12:21 +0000 (09:12 +0200)]
Makefile: Add target for remote Jailhouse installation

5 years agoUpdate .gitignore
Michal Sojka [Thu, 26 Jul 2018 06:38:46 +0000 (08:38 +0200)]
Update .gitignore

5 years agoUpdate firmware - from JetPack 3.2.1 (L4T 28.2.1)
Michal Sojka [Thu, 26 Jul 2018 06:37:19 +0000 (08:37 +0200)]
Update firmware - from JetPack 3.2.1 (L4T 28.2.1)

5 years agoMakefile: Create rootfs-overlay/bin before copying files there
Michal Sojka [Tue, 17 Jul 2018 11:34:22 +0000 (13:34 +0200)]
Makefile: Create rootfs-overlay/bin before copying files there

5 years agoUse absolute paths in jailhouse init script
Michal Sojka [Sat, 26 May 2018 22:09:37 +0000 (00:09 +0200)]
Use absolute paths in jailhouse init script

Useful when the script is run over SSH. For some reason *sbin is not in
the path.

5 years agoUpdate PREM test and main Makefile
Michal Sojka [Sat, 26 May 2018 21:49:16 +0000 (23:49 +0200)]
Update PREM test and main Makefile

5 years agojailhouse: Use spinlock to allow only one CPU to execute memory phase
Michal Sojka [Sat, 26 May 2018 22:10:25 +0000 (00:10 +0200)]
jailhouse: Use spinlock to allow only one CPU to execute memory phase

So far, we do not disable interrupts so care must be taken that the
calling thread does not migrate to another CPU.

5 years agoAdd skeleton of prem_guard_set {sys,hyper}call and a testing program
Michal Sojka [Sat, 26 May 2018 11:09:10 +0000 (13:09 +0200)]
Add skeleton of prem_guard_set {sys,hyper}call and a testing program

5 years agoUse our copy of Nvidia's kernel
Michal Sojka [Sat, 26 May 2018 10:38:26 +0000 (12:38 +0200)]
Use our copy of Nvidia's kernel

We will need to modify it soon.

5 years agoEnable Jailhouse also on Denver CPUs
Michal Sojka [Mon, 21 May 2018 15:08:38 +0000 (17:08 +0200)]
Enable Jailhouse also on Denver CPUs

5 years agoAdd README
Michal Sojka [Thu, 17 May 2018 11:57:18 +0000 (13:57 +0200)]
Add README

5 years agoSwitch off Denver cores before starting Jailhouse
Michal Sojka [Thu, 17 May 2018 11:45:24 +0000 (13:45 +0200)]
Switch off Denver cores before starting Jailhouse

Jailhouse either crashes or hangs without this.

5 years agoUnify jailhouse and linux boot scripts
Michal Sojka [Thu, 17 May 2018 11:05:45 +0000 (13:05 +0200)]
Unify jailhouse and linux boot scripts

5 years agoStart Jailhouse earlier in the boot to not waste time during testing
Michal Sojka [Thu, 17 May 2018 11:05:18 +0000 (13:05 +0200)]
Start Jailhouse earlier in the boot to not waste time during testing

5 years agoUse taskset to start JailHouse on core 0 (A57, not Denver)
Michal Sojka [Thu, 17 May 2018 10:39:39 +0000 (12:39 +0200)]
Use taskset to start JailHouse on core 0 (A57, not Denver)

Otherwise, it seems to crash.

5 years agoMakefile: Add dependency on JH configs
Michal Sojka [Thu, 17 May 2018 10:33:48 +0000 (12:33 +0200)]
Makefile: Add dependency on JH configs

This ensures that ramdisk is updated even when a config changes.

5 years agoMakefile: Rebuild buildroot when its .config changes
Michal Sojka [Wed, 16 May 2018 16:58:12 +0000 (18:58 +0200)]
Makefile: Rebuild buildroot when its .config changes

5 years agoMakefile: Fix Jailhouse compilation
Michal Sojka [Wed, 16 May 2018 16:55:07 +0000 (18:55 +0200)]
Makefile: Fix Jailhouse compilation

5 years agoSwitch to Jailhouse for TX2
Michal Sojka [Wed, 16 May 2018 16:39:34 +0000 (18:39 +0200)]
Switch to Jailhouse for TX2

5 years agoMakefile: Rebuild ramdisk whenever an overlaid file changes
Michal Sojka [Wed, 16 May 2018 16:29:00 +0000 (18:29 +0200)]
Makefile: Rebuild ramdisk whenever an overlaid file changes

5 years agonovaboot: Use only serial console
Michal Sojka [Wed, 16 May 2018 16:12:41 +0000 (18:12 +0200)]
novaboot: Use only serial console

This ensures that all messages from boot scripts can be seen on serial
line, i.e. when working remotely.

5 years agoMakefile: Run submakes in parallel
Michal Sojka [Wed, 16 May 2018 16:11:14 +0000 (18:11 +0200)]
Makefile: Run submakes in parallel

This is just to save me always typing -jN on the command line.

5 years agonovaboot: Use FDT address from u-boot variable rather than plain number
Michal Sojka [Wed, 16 May 2018 16:09:54 +0000 (18:09 +0200)]
novaboot: Use FDT address from u-boot variable rather than plain number

This should be more robust to possible future changes.

5 years agoMove authorized_keys to /root/.ssh, where dropbear looks for it
Michal Sojka [Wed, 16 May 2018 11:44:15 +0000 (13:44 +0200)]
Move authorized_keys to /root/.ssh, where dropbear looks for it

5 years agoAdd my SSH public key to the root fs
Michal Sojka [Wed, 16 May 2018 11:04:40 +0000 (13:04 +0200)]
Add my SSH public key to the root fs

5 years agoUse built-in device tree rahter than the one compiled with the kernel
Michal Sojka [Wed, 16 May 2018 10:26:24 +0000 (12:26 +0200)]
Use built-in device tree rahter than the one compiled with the kernel

It seems that some kind of firmware, which runs before U-Boot, modifies the
device tree based on somethig (either configuration in Flash or detected
hardware).

With this, ethernet works even with our kernels booted from network.
diff --git a/build/boot-flashfs b/build/boot-flashfs index 4c801d7..d654a82
100755 --- a/build/boot-flashfs +++ b/build/boot-flashfs @@ -3,6 +3,7 @@
 # Boot localy built Linux kernel with root filesystem from the flash

 load linux-4.4/arch/arm64/boot/Image root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb

-UBOOT_CMD=booti ${kernel_addr_r} - ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} - 0x92000000
diff --git a/build/boot-linux b/build/boot-linux
index 697fbd9..83af34a 100755
--- a/build/boot-linux
+++ b/build/boot-linux
@@ -3,7 +3,8 @@
 # Boot localy built Linux kernel and initramfs

 load linux-4.4/arch/arm64/boot/Image console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
 load buildroot/images/rootfs.cpio.uboot

-UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} 0x92000000

5 years agoRevert "Update jailshouse to Claudio's version"
Michal Sojka [Tue, 15 May 2018 08:31:33 +0000 (10:31 +0200)]
Revert "Update jailshouse to Claudio's version"

This reverts commit 73a0ca057fd9840f8b06b197caab76925ff2c0d3.

5 years agoTune Makefile and buildroot .config
Michal Sojka [Tue, 15 May 2018 08:19:56 +0000 (10:19 +0200)]
Tune Makefile and buildroot .config

5 years agoAdd .editorconfig
Michal Sojka [Tue, 15 May 2018 07:41:25 +0000 (09:41 +0200)]
Add .editorconfig

5 years agoAdd command for building U-Boot FIT image
Michal Sojka [Tue, 15 May 2018 07:11:01 +0000 (09:11 +0200)]
Add command for building U-Boot FIT image

5 years agoUpdate Makefile to build everything
Michal Sojka [Mon, 14 May 2018 23:10:37 +0000 (01:10 +0200)]
Update Makefile to build everything

5 years agoUse Claudio's kernel config
Michal Sojka [Mon, 14 May 2018 22:21:42 +0000 (00:21 +0200)]
Use Claudio's kernel config

i.e. the file jailhouse/kernel/tx2/config.

5 years agoRemove 3.10 kernel
Michal Sojka [Mon, 14 May 2018 22:12:03 +0000 (00:12 +0200)]
Remove 3.10 kernel

It was used for TX1.

5 years agoMake plain Linux bootable on TX2
Michal Sojka [Mon, 14 May 2018 21:55:44 +0000 (23:55 +0200)]
Make plain Linux bootable on TX2

5 years agoAdd working configuration for nv-tegra kernel-4.4 build
Michal Sojka [Fri, 11 May 2018 16:42:28 +0000 (18:42 +0200)]
Add working configuration for nv-tegra kernel-4.4 build

The .config is created by 'make tegra18_defconfig'.

5 years agoUpdate jailshouse to Claudio's version
Michal Sojka [Fri, 11 May 2018 16:33:15 +0000 (18:33 +0200)]
Update jailshouse to Claudio's version

https://github.com/evidence/linux-jailhouse-jetson/tree/3ba5054d3b38e0a9e4e23ef9b5fd2ac234738fa7

5 years agoAdd nvidia's sources as git submodules
Michal Sojka [Fri, 11 May 2018 16:20:10 +0000 (18:20 +0200)]
Add nvidia's sources as git submodules

This was done by running the script added in the last commit as
follows:

    ./source_sync.sh -d . -k l4t/l4t-r28.2

5 years agoModify source_sync.sh to run "git submodule add" rather than "git clone"
Michal Sojka [Fri, 11 May 2018 14:40:23 +0000 (16:40 +0200)]
Modify source_sync.sh to run "git submodule add" rather than "git clone"

5 years agoAdd source_sync.sh from "L4T Jetson TX2 Driver Package 28.2"
Michal Sojka [Fri, 11 May 2018 14:28:42 +0000 (16:28 +0200)]
Add source_sync.sh from "L4T Jetson TX2 Driver Package 28.2"

It can be downloaded from
https://developer.nvidia.com/embedded/dlc/l4t-jetson-tx2-driver-package-28-2-ga.

We will use this script to clone all needed nv-tegra repositories.

5 years agoUpdate URL of jailhouse repo
Michal Sojka [Mon, 7 May 2018 07:59:24 +0000 (09:59 +0200)]
Update URL of jailhouse repo

6 years agoMove Linux sources to our server
Michal Sojka [Sat, 2 Dec 2017 13:33:24 +0000 (14:33 +0100)]
Move Linux sources to our server

6 years agoChange novaboot configuration
Michal Sojka [Tue, 26 Sep 2017 11:45:04 +0000 (13:45 +0200)]
Change novaboot configuration

6 years agoinit test moved to proper location
houdek [Wed, 10 May 2017 13:21:24 +0000 (13:21 +0000)]
init test moved to proper location

6 years agologin prompt is on tty0
houdek [Wed, 10 May 2017 13:20:27 +0000 (13:20 +0000)]
login prompt is on tty0

6 years agoget IP adress after init
houdek [Wed, 10 May 2017 08:37:27 +0000 (08:37 +0000)]
get IP adress after init

6 years agoMake novaboot not reset the board until it is unused
Michal Sojka [Tue, 9 May 2017 15:10:16 +0000 (17:10 +0200)]
Make novaboot not reset the board until it is unused

6 years agoFix TFTP server IP address
Michal Sojka [Tue, 9 May 2017 14:44:15 +0000 (16:44 +0200)]
Fix TFTP server IP address

6 years agoUpdate novaboot configuration for TX1
Michal Sojka [Tue, 9 May 2017 14:40:24 +0000 (16:40 +0200)]
Update novaboot configuration for TX1

6 years agossh support (nameserver probably not working)
houdek [Fri, 5 May 2017 14:11:23 +0000 (14:11 +0000)]
ssh support (nameserver probably not working)

6 years agoautorun jailhouse test
houdek [Fri, 5 May 2017 14:10:08 +0000 (14:10 +0000)]
autorun jailhouse test

6 years agoroot password
houdek [Fri, 5 May 2017 14:08:41 +0000 (14:08 +0000)]
root password

6 years agosilent boot
houdek [Fri, 5 May 2017 14:07:59 +0000 (14:07 +0000)]
silent boot

6 years agoMakefile support for jailhouse tx1 cells
houdek [Fri, 5 May 2017 14:07:41 +0000 (14:07 +0000)]
Makefile support for jailhouse tx1 cells

6 years agoMakefile: target clean
houdek [Fri, 5 May 2017 14:07:04 +0000 (14:07 +0000)]
Makefile: target clean

6 years agopublic key - houdek, eth-on
houdek [Fri, 5 May 2017 14:05:41 +0000 (14:05 +0000)]
public key - houdek, eth-on

6 years agoInstall both jailhouse and kernel modules to the same directory
Michal Sojka [Wed, 3 May 2017 16:07:47 +0000 (18:07 +0200)]
Install both jailhouse and kernel modules to the same directory

6 years agoTemporary fixes
houdek [Wed, 3 May 2017 15:01:21 +0000 (15:01 +0000)]
Temporary fixes

6 years agoFirst commit
Michal Sojka [Wed, 3 May 2017 11:49:21 +0000 (13:49 +0200)]
First commit