IOS version 0.7.6 (Release Candidate 3) 06/09/06 Summary: -------- This is a bug fix release to version 0.7.6 RC2. This release contains only the swupdate image for 64MB and 128MB configurations. The release also contains two versions of the IOP SDK release (one with networking source code and one without networking source code) Users can perform swupdate from 0.7.5 to 0.7.6 RC3. All program code, tools, and boot/os images have been checked into the main Nintendo SDK tree to perform IOS 0.7.6 update. Here are some main directories: - build/libraries/es/ sdi/ socket/ - build/tests/es/ sdi/ socket/ - X86/bin/ - dvddata/swupdate/ - rvl-64/ - swupdate image for 64 MB configuration - rvl-128/ - swupdate image for 128 MB configuration - securebuild/IOS/ - readme/ - rvl-64/ - Various resource manager programs, ios image - rvl-128/ - Various resource manager programs, ios image - iop_sdk_128.tgz - Compressed tar image of IOP SDK with source code for networking stack and USB-Ethernet driver - iop_sdk_128_no_src.tgz - Compressed tar image of IOP SDK without source code for networking stack and USB-Ethernet driver The main features of this release are: 1) All features from 0.7.6 RC2 2) Bug fixes (IOS, ES, DI, TCP/IP stack) 3) IOP SDK 4) Support for a new debugging feature on IOP: - IOS_GetUsage() system call - Idle thread printing out usage of system resources based on setting of global variable in SRAM memory Limitations: ------------ 1) Testing a) The following configuration was used: - NDEV2: ES 2.01 + 128 MB GDDR3 - NDEV2: ES 2.01 + 64 MB GDDR3 b) The update process was performed from: - 0.7.5 (5-block image) -> 0.7.6 RC3 swupdate - 0.7.5 (5-block image) -> 0.7.5 swupdate -> 0.7.6 RC3 swupdate - 0.7.6 RC1 swupdate -> 0.7.6 RC2 swupdate -> 0.7.6 RC3 swupdate 2) See additional release notes below from each subsystem. Known Issues/Problems: ---------------------- 1) Once IOS 0.7.6 is updated on NDEV systems, old FS API tests (fs_apitest, fs_apitestasyn) SHOULD NOT be run since these tests will reformat the filesystem and delete the IOS images on the filesystem. This will cause the subsequent boot sequence to fail and requires the ARM JTAG-Jet to burn the IOS 0.7.5 (5-blockimage). a) Other NAND test programs should not do destructive operations (i.e., format, delete system directories, etc.) on IOS 0.7 systems. NAND test programs should only use /tmp directory on IOS 0.7 systems. 2) See additional release notes below from each subsystem. Procedure to perform software update to IOS 0.7.6 RC3: ----------------------------------------------------- 1. Update Nintendo SDK source tree - The boot1, boot2, and os images are located under SDK/dvddata/swupdate/ directory: - boot1.aes - boot2.wad - os.wad (This is the IOS 0.7.6 image that contains ES, FS, DI, OHCI0, OHCI1, SD, TCP/IP, and USB-Ethernet drivers) - viewer.wad 2. Go to SDK/securebuild/IOS/bin - Make sure that swupdate.elf is there. 4. Assuming NDEV system is already running IOS 0.7.5, - Do "ndrun ./swupdate.elf" - This will perform the importing of viewer.wad, os.wad, boot2.wad, and boot1.aes. Viewer and OS will be stored on the secure filesystem while boot2.wad and boot1.aes will be written to NAND flash. The swupdate.elf program will display updating messages on the TV display as well as the serial console. 5. Once the software update procedure is complete, you can now run your PPC disk applications normally. - ndrun smp-onetriD.elf You should the serial console displaying "Firmware : 0.7.6 (6/9/2006)" Subsystem Release Notes: ------------------------ A) OS 1. Same as 0.7.6 RC2 2. Assign priorities to all resource manager threads (please look at priority.h in SDK release) 3. Adjust amount of system resources (increase timers) - Threads: 32 -> 48 - Message queues: 128 -> 96 - Timers: 32 -> 64 - Descriptors per process: 64 -> 32 - Heaps: 16 4. Increase iobuf space: Size Number Old numbers (bytes) 64 128 64 256 128 64 512 64 8 1024 48 4 1536 48 4 2048 96 8 4096 24 0 5. Add support for IOS panic (print out error message and spin loop) when either an prefetch or data abort exception occurs. 6. Add support for new IOS_GetUsage() system call. 7. Timers a) There is an important typo in the IOP OS API document regarding timer. That is, the correct timer unit for IOS_CreateTimer() and IOS_RestartTimer() APIs should be microsecond (and not millisecond). b) Creating a timer with zero for both value and interval will no longer trigger an initial message. 8. Bug fixes - Fixed incorrect 16-instructions (BS0) when IOS is launched - Fixed GPIO bug due to inadvertently reset the GPIO owner bits. - Added additional 2ms delay after setting the GPIO_DCDC_PWRCNT bit. - Fixed bug in IOS_GetUsage() to report the correct process name. B) ES 1. Notes a) Added ES_DeleteTitleContent (behaves the same way as the old ES_DeleteTitle) b) Changed ES_DeleteTitle to delete the TMD file as well, and delete the title dir if necessary c) Make ES_InitLib a no-op if there’s already an existing connection d) Added a couple of options to publish.py for shared content and limited play ticket publishing. There are some examplesin /build/tests/es/makefile C) DI 1. Notes a) This driver must be used with the new PPC shim layer code. It will not function otherwise. b) The new shim layer code can be created by defining 'NEW_CODE' when compiling RVL_SDK/build/libraries/dvd/src/dvd_broadway.c The resulting shim layer code will not work with previous DI drivers. c) This release includes new versions of make_ndev_partition and make_rvl_partition that allow the user to specify the IOS version and group ID for the partition's TMD. 2. All API's are supported. 3. No API Limitations. 4. No known bugs 5. This release fixes the bug that the ticket and certificates specified in the DVDLowOpenPartition command are not flushed to memory by the PPC software. D) ISFS 1. No change from 0.7.6 RC2 E) USB 1. No change from 0.7.6 RC2 2. Known issues: - Power switching is not per-port. - No support for isochronous transfers - No support for hubs - Hot-plugging is supported on IOP side but requires testing on PPC side. F) SD 1. APIs - We have modified the meaning of two SDIO APIs and implemented them to support the detection of SD Card insertion and removal (see sample usage build/tests/sdi/src/sdi_test.c) a) ISD_RegisterDeviceIntrHandler(SDDevHandle fd, SDCallbackFunc handler, void *arg) /* === Register Event Handler, Insert and Remove === */ /* Note: This event fires once only and then needs to be refreshed with new call. */ event = SD_CARD_INSERTED; rc = ISD_RegisterDeviceIntrHandler (fd, (SDCallbackFunc)&event_callback, &event); if (rc != IOS_ERROR_OK) return; /* wait for insert */ waitcb(fd); /* now set event for remove */ event = SD_CARD_REMOVED; rc = ISD_RegisterDeviceIntrHandler (fd, (SDCallbackFunc)&event_callback, &event); if (rc!=IOS_ERROR_OK) return; b) ISD_UnregisterDeviceIntrHandler (fd); /* - Turn off register events - */ 2. Known Issues/Problems - All synchronous APIs are NOT thread safe (except ISD_RegisterDeviceIntrHandler) These APIs will be fixed to be thread safe in the next release. - All asynchronous APIs (ISD_XXXAsync) are thread safe. G) TCP/IP 1. No change from 0.7.6 RC2 except bug fixes 2. The following APIs are supported (implemented and tested) - SOStartup() - SOCleanup() - SOSocket() - SOClose() - SOBind() - SOConnect() - SOSendTo() - SORecvFrom() - SOListen() - SOAccept() - SOPoll() - SOSetSockOpt() - SOGetHostID() - SOInetNtoA() - SONtoHl() - SONtoHs() - SOHtoNl() - SOHtoNs() - SOGetInterfaceOpt() - SOSetInterfaceOpt() 3. The following APIs are not supported in this release (most have been implemented but not tested) - SOGetPeerName() - SOGetSockName() - SOGetSockOpt() - SOFcntl() - SOGetHostByName() - SOGetHostByAddr() - SOGetNameInfo() - SOGetLastError() - SOInetAtoN() - SOInetPtoN() - SOInetNtoP() - SOSockAtMark() - SOGetAddrInfo() (not implemented) - Non-blocking features 4. The following protocols are supported - TCP / UDP / IP / ARP / DHCP 5. Application porting instructions/restrictions a) The socket lib on PPC is compatible with the original stack. However, only socket APIs are available on PPC. Applications which use the internal network APIs must be changed. b) The following buffers needs to be 32 bytes aligned when calling the API: optval in SOGetInterfaceOpt() optval in SOSetInterfaceOpt() buf in SORecvFrom() / SORead() / SORecv() buf in SOSendTo() / SOWrite() / SOSend() fds in SOPoll() name in SOGetHostByName() cp in SOInetAtoN() src in SOInetPtoN() dst in SOInetNtoP() config in SOStartup() c) Only socket.h should be included to access the network APIs and public structures #include 6. Changes to existing APIs a) The interface parameter in SOGetInterfaceOpt() and SOSetInterfaceOpt() is ignored. The network stack and applications no longer share the address map. Therefore, the application can not pass an address to locate the interface in the stack. The APIs will always use the default interface. b) SOGetInterfaceOpt() and SOSetInterfaceOpt() can not be used to get/set filter function pointer. c) The allocation/free function pointer in SOConfig will be ignored in SOStartup(). Applications can not setup function pointer in the network stack. 7. Support for multiple interfaces - The stack does not support multiple interfaces Simultaneously. To switch the interface, applications need to call SOCleanup() to shutdown the current interface and SOStartup() to start the new interface. 8. Bug fixes - Fixed timer leak bug that can potentially let the network stack consumes all timer resources in the system. - Fixed iobuf leak bug in USB-Ethernet driver. - Fixed race condition in porting layer implementation of OSSleepThread/OSWakeupThread. - Fixed bug in porting layer timer functions for accuracy. - Fixed race condition in iobuf code. 9. Known Issues/Bugs a) The network stack contains code that accesses 32 bits from an odd address (non-32-bit aligned). Although this type of access is allowed on PPC, it is illegal on the ARM9 processor and will cause an exception. Therefore, more effort is needed to test the network stack to catch all these situations. b) The maximum number of oustanding opened sockets is currently set to 12. c) Due to kernel resource contraints, the size of the ARP cache has been reduced from 64 to 16 entries to limit the number of timers required. e) In IOP stress testing, there are intermittent hangs in TCP receive thread. This condition is currently being investigated.