diff --git a/build_boot b/build_boot index 79909e0..607fb8b 100755 --- a/build_boot +++ b/build_boot @@ -5,5 +5,5 @@ sd="${bin}/sdcard" flash="${bin}/flash" # Build the the boot program -bstc -b -O cgru src/boot.spin +bstc -D __HIVE -b -O a src/boot.spin mv boot.binary ${flash}/ diff --git a/build_spinix b/build_spinix index 4f26fc8..1dd4fab 100755 --- a/build_spinix +++ b/build_spinix @@ -25,8 +25,14 @@ cp license.txt ${sd} cp src/_shellrc ${sd}/bin # Generate _sysparm and copy to root +# - UNIX Time +# - timezone config shell_level +# - ifflag whileflag scriptline +# - ENV variable 1 +# - ... +# - ENV variable n date +%s >${sd}/_sysparm -echo -6 3 0 >>${sd}/_sysparm +echo 1 1 0 >>${sd}/_sysparm echo 0 0 0 >>${sd}/_sysparm echo "GPWD /" >>${sd}/_sysparm echo "LSCRIPT_FILE /bin/_shellrc" >>${sd}/_sysparm diff --git a/src/boot.spin b/src/boot.spin index 240c5f6..0f48e73 100644 --- a/src/boot.spin +++ b/src/boot.spin @@ -22,12 +22,15 @@ VAR DAT pins byte 255[4] +#ifndef __HIVE sd_names byte "DO ", 0, "CLK", 0, "DI ", 0, "CS ", 0 +#endif PUB main | i, ptr, infile, handle longfill(sys#rendezvous, 0, ($8000 - sys#rendezvous)/4) c.start if pins == 255 +#ifndef __HIVE repeat c.printf0(string("Press any key to start\n")) if ser.rxtime(1000) <> -1 @@ -38,6 +41,12 @@ PUB main | i, ptr, infile, handle c.scanf1(string("%d"), @result) pins[i] := result ptr += 4 +#else + pins[0] := 10 + pins[1] := 11 + pins[2] := 12 + pins[3] := 13 +#endif WriteEEPromLong(eeprom_pin, @pins) spi.start_explicit(pins, pins[1], pins[2], pins[3]) c.mount_explicit(pins, pins[1], pins[2], pins[3]) diff --git a/src/clibsd.bin b/src/clibsd.bin deleted file mode 100644 index 37d719d..0000000 Binary files a/src/clibsd.bin and /dev/null differ