IOS version 4.0.1 07/20/06 Summary: -------- This is release candidate for IOS 4.0.1 This release contains support for both 64MB and 128MB configurations. To use this IOS version 4.0.1, you'll need 1) A system menu (systemmenu.rvl.101.wad) that is published with OS version 4. The dvddata/swupdate/4.01 directory already contains this system menu. 2) An rvl.bin image that is published using OS version 4. A version of this rvl.bin has been checked in to SDK/X86/bin as rvl.4.bin. If your system is already running 4.0.0, updating to 4.0.1 will overwrite your 4.0.0 version since IOS only supports one major number. All program code, tools, and boot/os images have been checked into the main Nintendo SDK tree to perform IOS 4.0.0 update. Here are some main directories: - dvddata/swupdate/4.01 - securebuild/IOS/4.01 - rvl-64/ - rvl-128/ The main features of this release are: 1) Added additional support for STM 2) Fixed DI reset issue in normal boot and compat mode boot 3) Enabled DVD Video access using TMD 4) Added additional ES APIs and updated existing APIs 5) Added additional USB APIs 6) Complete TCP/IP stack APIs 7) Bug fixes (IOS, ES, FS, DI, SD, Net) Limitations: ------------ 1) Testing a) The following configuration was used: - NDEV2: ES 2.11 + 128 MB GDDR3 - NDEV2: ES 2.01 + 128 MB GDDR3 - NDEV2: ES 2.01 + 64 MB GDDR3 - NDEV1: ES 2.01 + 128 MB GDDR3 b) The update process was performed from: - 0.7.5 (5-block image) -> 4.0.1 swupdate - 4.0.0 swupdate -> 4.0.1 swupdate - 4.0.1 swupdate -> 4.0.1 swupdate 2) See additional release notes below from each subsystem. Known Issues/Problems: ---------------------- 1) Once IOS 0.7.6 (and later) 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 4.0.1 from IOS 0.7.6 (or later) --------------------------------------------------------------------------- 1. Update Nintendo SDK source tree - The swupdate for 64MB and 128 MB images are located under SDK/dvddata/swupdate/4.01 2. Go to SDK/build/es and build swupdateIRD.elf program 3. Assuming NDEV system is already running IOS 0.7.6 or later, - Do "ndrun ./swupdateIRD.elf" 4. Use the contoller to select 4.01 directory and hit Start button. 5. Once the software update procedure is complete, you can now run your PPC disk applications normally. You should the serial console displaying "Firmware : 4.0.1 (7/20/2006)" Subsystem Release Notes: ------------------------ A) OS 1. Features/Changes: - Update IOS_ClearAndEnable() to support the RSW interrupt. The IOP test for the RSW and GPIO power interrupts has been updated. - Changed the way DI is being reset in normal boot: * IOP sets DI_SPINUP bit to disable disk spin up * IOP brings both IODI (DI block reset) and DIRSTB (DI external reset line) out of reset. - Enabled STM to access the following additional ACR regs: * ACRVIDIM, ACRDIMCTRL, ACRSIFRMCNT - Added memory buffer checking in the kernel for OS calls to ensure that processes have read/write permission. - Updated DDR read arbitration parameter from ATI. 2. Bug fixes - VI PLL is not reset if it is already initialized. This prevents an extra screen flicker, when the OS is reloaded. - Lomem version setting should look at DI straps for ES1.x chips. - Fixed stack overflow bug and increased syscall stack space to 512K in address map to support 48 threads. B) ES 1. Features/Changes: - Added disable/enable DVD video access based on TMD - Enabled boot2 version write in EEPROM - ES_ImportTicket for system titles would overwrite the existing ticket instead of appending. - Added ES_ImportTitleCancel API. It cancels the import/update and keeps the original title unchanged. ES_ImportTitleDone commits the import/update and deletes the original content files that are not referenced by the new TMD. - Changed error handling in ES import APIs. This means anytime caller calls ES_ImportTitleInit, he should call ES_ImportTitleDone or ES_ImportTitleCancel, even if the init fails. Similarly, anytime caller calls ES_ImportContentBegin, he should call ES_ImportContentEnd, even if begin fails. 2. Bug fixes - Fixed bugs in CheckVersion and GetTicketViews. - Added ticket checking in OpenTitleContentFile. - Updated group ID to use default group ID 2 for non-system title. - Fixed directory/file permissions. - Fixed launched sequence for compat mode titles. C) ISFS 1. Features - Same as 4.0.0 release 2. Bug fixes - Fixed a bug that caused some of the flash space to be un-usable. - Increased the reserved space to 1.5MB (from 1MB) per 64MB of flash space. D) DI 1. Features/Changes - The driver turns off DVD-Video access when it starts up. 2. Bug fixes - Previously, the driver code would allow a "forged" message from PowerPC software to read the raw disk content from anywhere in the disk. This bug has been fixed. E) USB 1. Features/Changes - GetDevList(class = 0) now fetches a list of all connected devices. As before, specifying a non-zero class fetches a list of devices of that class. - The following APIs have been added (OHCI equivalents of the testing API for EHCI): * IOSError IUSB_GetRhDesca(IOSFd fd, u32 *desca); * IOSError IUSB_GetRhPortStatus(IOSFd fd, u8 port, u32 *stat); * IOSError IUSB_SetRhPortStatus(IOSFd fd, u8 port, u32 stat); - The following API has been added (to IOP side only) to register for device removal notification: * IOSError IUSB_RegisterRemovalNotify(IOSFd fd, IOSMessageQueueId mqid, IOSResourceRequest *reply); - The PPC side of the USB library has been updated to use the above APIs. The examples have been updated to illustrate their use. - PPC USB API document has been updated to include a description of the above APIs. 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. Bug fixes - Fixed the improper passing of ioctl call parameters on PPC and IOP. - Fixed the multiple generation of insertion/removal events. 2. Known Issues/Problems - All synchronous APIs are NOT thread safe (except ISD_RegisterDeviceIntrHandler). G) TCP/IP 1. The following APIs are supported - SOStartup() - SOCleanup() - SOSocket() - SOClose() - SOBind() - SOConnect() - SOSendTo() - SORecvFrom() - SOListen() - SOAccept() - SOPoll() - SOSetSockOpt() - SOGetHostID() - SOInetNtoA() - SONtoHl() - SONtoHs() - SOHtoNl() - SOHtoNs() - SOGetInterfaceOpt() - SOSetInterfaceOpt() - SOGetPeerName() - SOGetSockName() - SOGetSockOpt() - SOFcntl() - SOGetHostByName() - SOGetHostByAddr() - SOGetNameInfo() - SOGetLastError() - SOInetAtoN() - SOInetPtoN() - SOInetNtoP() - SOSockAtMark() - SOGetAddrInfo() - ICMPSocket() - ICMPPing() - ICMPCancel() - ICMPClose() 2. New APIs - SOSetInterface() 3. The following protocols are supported - TCP / UDP / IP / ARP / DHCP / ICMP 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 1) 32 bytes aligned; 2) size of 32 bytes multiple; and 3) allocated from DDR (MEM2) 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 pointers are supported in SOConfig on PPC side. 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. - Added new API SOSetInterface(interfaceId) where interfaceId - NET_IF_ETH_WIFI OR - NET_IF_ETH_USB 8. Bug fixes - Added IPv6 support. - Added support to disable interrupt/scheduler in transmit/timer callbacks. - Fixed the DHCP release bug. - Fixed the alarm handling to do cancellation correctly. - Fixed the detection of link up and down. - Fixed the problem in SOGetNameInfo(). - Added SOInit() and made SOGetInterfaceOpt() work correctly. - Increased alarm queue size from 16 to 48. - Fixed SOInetNtoP() to work correctly. - Fixed IFMute() to work correctly. - Fixed SOGetHostByAddr() to work correctly. - Set the maximum of open sockets to 12 on PPC. - Made inetd to work consistently when there are multiple clients running. 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. d) In IOP stress testing (either with NAND Flash or SD Card), there are intermittent hangs in TCP receive thread. This condition is currently being investigated. e) The driver will crash during the initialization if either the ethernet dongle is not present or the ethernet wire is not plugged in. H) GC Compatible Mode 1. Features/Changes - Modified the compat mode code to not reset the DI block or the external DI reset line when switching from normal to compat mode. 2. Bug fixes - N/A