Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/lv2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
//#define NO_DVD //commented to actually use the DVD...

/* Filesystem drivers */

#define FS_ISO9660
#define FS_FAT
//#define FS_EXT2FS
#define FS_XTAF
//#define FS_NTFS
#define FS_TFTP

void mount_all_devices();

Expand Down
22 changes: 18 additions & 4 deletions source/lv2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
#include "asciiart.h"
#include "config.h"
#include "file.h"

#ifdef FS_TFTP
#include "tftp/tftp.h"
#endif

#include "log.h"

Expand Down Expand Up @@ -211,12 +214,23 @@ int main(){
ip_addr_t fallback_address;
ip4_addr_set_u32(&fallback_address, 0xC0A8015A); // 192.168.1.90

#ifdef FS_TFTP
printf("\n * Looking for files on TFTP...\n\n");
for(;;){
tftp_loop(boot_server_name()); //less likely to find something...
tftp_loop(fallback_address);
#endif

for(;;){
#ifdef FS_TFTP
//less likely to find something...
tftp_loop(boot_server_name());
tftp_loop(fallback_address);
#else
// If TFTP support isn't enabled
// the network still needs to be
// poll'ed for the web interface
network_poll();
#endif

fileloop();

console_clrline();
}

Expand Down