From 0a36ea081505b4607b39a03ced901818e0d0a107 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 17 Jun 2019 15:34:55 -0400 Subject: [PATCH] recipes/rc2014/zasm: add unpack + verification --- recipes/rc2014/zasm/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipes/rc2014/zasm/README.md b/recipes/rc2014/zasm/README.md index 205ac2b..ce98aac 100644 --- a/recipes/rc2014/zasm/README.md +++ b/recipes/rc2014/zasm/README.md @@ -99,3 +99,13 @@ Now you can write this into your card and boot Collapse OS: > fopn 1 dest > zasm 1 2 # This takes a while. About 3 minutes. > sdcf # success! sdcf flushes SD card buffers to the card. + +Now let's go verify that we assembled the right thing. Pop out the card and +plug it in your "modern" computer. Pipe the device directly through `cfsunpack` +to unpack the FS into a directory (it will stop reading when it stops seeing +CFS blocks): + + $ sudo cat /dev/sdX | ../../../tools/cfspack/cfsunpack cfsout + $ cmp cfsout/dest ../os.bin + +They're the same! Your RC2014 assembled a full Collapse OS kernel all by itself!