IOS version 0.7.6 (Release Candidate 1) 06/02/06 Summary: -------- This is an updated release to version 0.7.6. This release contains only the swupdate image for 64MB and 128MB configurations. Users can perform swupdate from 0.7.5. to 0.7.6. 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/ - build/libraries/fs/ - build/libraries/sdi/ - build/libraries/usb/ - build/libraries/dvd - build/libraries/socket - build/tests/es/ - build/tests/fs/ - build/tests/sdi - build/tests/usb/ - build/tests/di - build/tests/socket - build/tools/es/ - dvddata/swupdate/ - rvl-64/ - swupdate image for 64 MB configuration - rvl-128/ - swupdate image for 128 MB configuration - securebuild/IOS/ - rvl-64/ - Various resource manager programs, ios image - rvl-128/ - Various resource manager programs, ios image - bin/ - Flash update programs for each release - readme/ - Readme for each release - securebuild/tools/arm-elf-merge - arm-elf-merg.exe - createOSImage.py - Makefile.sample - Sample makefile to build os.wad The main features of this release are: 1) All features from 0.7.5 2) Updated eTicket Service 3) Updated USB driver for OHCI0 and OHCI1 4) Updated TCP/IP stack 5) Updated DI driver 6) Updated SD Card driver 7) Updated arm-elf-merge program Limitations: ------------ 1) Testing a) The following configuration was used: - NDEV2: ES 2.01 + 128 MB GDDR3 - NDEV1: ES 2.01 + 128 MB GDDR3 - NDEV2: ES 1.21 + 128 MB GDDR3 - NDEV1: ES 1.21 + 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 swupdate - 0.7.5 (5-block image) -> 0.7.5 swupdate -> 0.7.6 swupdate 2) The swupdate program does not differentiate the target system for 64MB or 128MB configuration. It simply reads in the files from dvddata/swupdate directory. This will be enhanced shortly. 3) 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: ------------------------------------------------- 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/2/2006)" Subsystem Release Notes: ------------------------ A) OS 1. Same as 0.7.5 2. Assign priorities to all resource manager threads 3. Adjust amount of system resources - Threads: 32 -> 48 - Message queues: 128 -> 96 - Timers: 64 -> 32 - 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. 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 IPC hanging due to a race condition between OSSleepThread() and IPC reply. B) ES 1. Features - Support limited play - Support import title and launch title - Support launching and relaunching IOS 2. Bug fixes - Fixed IPC hung condition if launch title failed C) DI 1. All API's are supported. 2. No API Limitations. 3. The DVDLowOpenPartition call does not flush the eTicket or certificate memory from the PowerPC cache. This does not affect OpenPartition calls that use the default ticket on the disk. 4. This release fixes the stale data problem when a new partition is opened after a previous partition was closed. 5. This release eliminates the 200ms wait time in the driver the first time DVDLowReset is called after power-on. D) ISFS 1. No change from 0.7.5. E) USB 1. No API changes from previous release. 2. Bug fixes - Fixed bug that caused OHCI1 driver to use space reserved for OHCI0 for interrupt endpoints and for the host controller communication area (HCCA). This bug caused intermittent failures in devices connecting to OCHI1 and OHCI0 at the same time. 3. The following tests were performed on NDEV2 (ES2.01), NDEV1 (ES1.21), and NDEV1 (ES2.01): - Using Eugene's controller test to talk to BT host controller in either OHCI0 or OHCI1. There is an issue with this test as it often hits an assertion in the BT code: ---------------------------------- .... .... BTM_CB_EVT_WRITE_STORED_LINK_KEYS status: 17 num_keys: 0 Failed assertion p_w_cmpl->num_keys != 0 in "WUD.c" on line 1730. Address: Back Chain LR Save 0x801119c8: 0x80111a68 0x8000cb80 0x80111a68: 0x80111ad8 0x8009761c 0x80111ad8: 0x80111af8 0x800597f4 0x80111af8: 0x80111b18 0x800845b4 0x80111b18: 0x80111b38 0x8008477c 0x80111b38: 0x80111b58 0x80083908 0x80111b58: 0x80111b98 0x80091c38 0x80111b98: 0x80111ba8 0x80091954 0x80111ba8: 0x80111ea8 0x8000a508 0x80111ea8: 0x80111eb0 0x80012870 0x80111eb0: 0x80111ef0 0x80012860 0x80111ef0: 0x80111f00 0x80012a30 0x80111f00: 0x80111f50 0x80013390 0x80111f50: 0x80111f70 0x800236e4 0x80111f70: 0x80111f80 0x8002376c 0x80111f80: 0x80111f90 0x800426b0 ---------------------------------------------------- - Using mouse test with BT device connected to the other port. - Using networking test + USB-Ethernet dongle with BT device connected to the other port. 4. 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. No API changes from previous release. 2. New API has been available since 0.7.5: - Asynchronous version of Reset. ISD_ResetDeviceAsync(SDDevHandle fd, SDCallbackFunc handler, void *arg) 3. The following is essentially equivalent to an async version of ISD_Probe(slotNo): ISD_MountCard(slotNo, &fd); rc = ISD_ResetDeviceAsync(fd, ResetCallback, ...); ResetCallback(status, ...) { if (status==IOS_ERROR_OK) { --- SD CARD IS IN SLOT --- } } G) TCP/IP 1. 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() 2. 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 2. The following protocols are supported - TCP / UDP / IP / ARP / DHCP 3. Open Issues - The maximum sockets is currently set to 16. However, the stack may only support 12 sockets Simultaneously. 4. 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 The code which includes the private header files must be removed, for example: #include 5. 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. 6. 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. 7. Known Bugs - There is a timer leak bug in the networking stack where it doesn't destroy the timers when they are finished. This may consume all available timers in the system. A fix is actively being pursued so that a patch to the network stack can be released as soon as possible.