2024-05-18 18:12:11 +03:00
|
|
|
# ConOut text output
|
|
|
|
> cp t.efi $UEFI_DIR
|
|
|
|
> echo "@echo -off" > $UEFI_DIR/startup.nsh
|
|
|
|
> echo "FS0:\t.efi" >> $UEFI_DIR/startup.nsh
|
|
|
|
> echo "reset -s" >> $UEFI_DIR/startup.nsh
|
|
|
|
Hello World!
|
|
|
|
Hello World!
|
2024-05-23 22:11:10 +03:00
|
|
|
< rm $UEFI_DIR/*.efi
|
2024-05-18 18:12:11 +03:00
|
|
|
|
|
|
|
# Test args
|
|
|
|
> cp tcc.efi $UEFI_DIR
|
|
|
|
> echo "@echo -off" > $UEFI_DIR/startup.nsh
|
|
|
|
> echo "FS0:\tcc.efi" >> $UEFI_DIR/startup.nsh
|
|
|
|
> echo "reset -s" >> $UEFI_DIR/startup.nsh
|
|
|
|
Hello
|
|
|
|
Returning Failure works
|
|
|
|
0 args works just fine here.
|
|
|
|
1 arg works just fine here.
|
|
|
|
2 args works just fine here.
|
|
|
|
3 args works just fine here.
|
|
|
|
4 args works just fine here.
|
|
|
|
5 args works just fine here.
|
|
|
|
6 args works just fine here.
|
|
|
|
7 args works just fine here.
|
|
|
|
8 args works just fine here.
|
|
|
|
9 args works just fine here.
|
|
|
|
10 args works just fine here.
|
2024-05-23 22:11:10 +03:00
|
|
|
< rm $UEFI_DIR/*.efi
|
2024-05-18 18:12:11 +03:00
|
|
|
|
|
|
|
# Print args
|
|
|
|
> cp t8.efi $UEFI_DIR
|
|
|
|
> echo "@echo -off" > $UEFI_DIR/startup.nsh
|
|
|
|
> echo "FS0:\t8.efi Test1 Test2" >> $UEFI_DIR/startup.nsh
|
|
|
|
> echo "reset -s" >> $UEFI_DIR/startup.nsh
|
|
|
|
Hello World, started with Argc=3
|
|
|
|
Argv[0] = 'FS0:\t8.efi'
|
|
|
|
Argv[1] = 'Test1'
|
|
|
|
Argv[2] = 'Test2'
|
|
|
|
Bye.
|
2024-05-23 22:11:10 +03:00
|
|
|
< rm $UEFI_DIR/*.efi
|
|
|
|
|
|
|
|
# Test driver
|
|
|
|
> cp drv0.efi drv0_use.efi $UEFI_DIR
|
|
|
|
> echo "@echo -off" > $UEFI_DIR/startup.nsh
|
|
|
|
> echo "load FS0:\drv0.efi" >> $UEFI_DIR/startup.nsh
|
|
|
|
> echo "FS0:\drv0_use.efi" >> $UEFI_DIR/startup.nsh
|
|
|
|
> echo "reset -s" >> $UEFI_DIR/startup.nsh
|
|
|
|
Playing with driver instance 0...
|
|
|
|
Hello Sample UEFI Driver!
|
|
|
|
Hello was called 1 time(s).
|
|
|
|
< rm $UEFI_DIR/*.efi
|