diff options
author | Thomas Van Iseghem <[email protected]> | 2023-05-24 22:19:37 +0200 |
---|---|---|
committer | Thomas Van Iseghem <[email protected]> | 2023-05-24 22:19:37 +0200 |
commit | 2086a71d83ca2ef899e32ba4e02f0603c95cfcb9 (patch) | |
tree | 5b335a0204aa786ec73da281fa09204cb08c85e7 | |
parent | 44861c382a962d4151e8965766fb2d47cb91859e (diff) | |
download | OpenCortex-2086a71d83ca2ef899e32ba4e02f0603c95cfcb9.tar.gz OpenCortex-2086a71d83ca2ef899e32ba4e02f0603c95cfcb9.zip |
Some changes to emulator init to support ZenBrew
-rw-r--r-- | CorOS-dev-environment/CorOS-emulation/docker-compose.yaml | 2 | ||||
-rw-r--r-- | CorOS-dev-environment/init_system.sh | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml b/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml index c3321f3..743a1a0 100644 --- a/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml +++ b/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml @@ -15,7 +15,7 @@ services: environment: # Edit this to your needs. This should be just the file name, not the path. - - UPDATE_FILE=verify.bin.gz + - UPDATE_FILE=update-v6_MZO3_RudwwcoQAF3iLtPQ0ERwy4w6.bin.gz # Port forward the VNC port ports: diff --git a/CorOS-dev-environment/init_system.sh b/CorOS-dev-environment/init_system.sh index 5009cfa..d43ab6c 100644 --- a/CorOS-dev-environment/init_system.sh +++ b/CorOS-dev-environment/init_system.sh @@ -16,19 +16,25 @@ echo -e "${NC}" echo -e "${BLUE}========= Initializing CorOS emulation environment =========${NC}" echo "" -echo -e "${YELLOW}[!]${NC} Mounting the QC-filesystem, this can take a couple of seconds..." +echo -e "${YELLOW}[!]${NC} Mounting the CorOS update, this can take a couple of seconds..." # Decompress archive and mount rootfs.ext3 -gunzip -d -k /qc-fs/$UPDATE_FILE -# Run tar command on the decompressed file to extract the rootfs.ext3 file -# We need to remove the .gz extension from the file name -tar -xvf /qc-fs/${UPDATE_FILE::-3} -C /qc-fs-uncompressed -rm /qc-fs/${UPDATE_FILE::-3} +tar -xvf /qc-fs/$UPDATE_FILE -C /qc-fs-uncompressed echo "Mounting rootfs.ext3" mount -t ext4 /qc-fs-uncompressed/rootfs.ext3 $QEMU_LD_PREFIX echo -e "${YELLOW}Mounting rootfs.ext3 finished!${NC}" echo "" +echo -e "${YELLOW}[!]${NC} Setting up the CorOS file system..." +echo "Creating /etc/resolv.conf" +rm $QEMU_LD_PREFIX/etc/resolv.conf +echo "nameserver 8.8.8.8" >> $QEMU_LD_PREFIX/etc/resolv.conf +echo "nameserver 8.8.4.4" >> $QEMU_LD_PREFIX/etc/resolv.conf + +echo "Creating /media/p4" +mkdir -p $QEMU_LD_PREFIX/media/p4 +echo "" + # Promt the user to install custom QT # if the user types "y" or "Y" then install custom QT read -p "Do you want to install the custom compiled QT? (y/n) " -r |